Skip to content

removed spaces

removed spaces #30

name: Java Build, Lint and Test
on:
push:
jobs:
build-test-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout Xero-Java repo
uses: actions/checkout@v4
with:
repository: XeroAPI/Xero-Java
path: Xero-Java
- name: Set up JDK environment
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
cache: maven
- name: Configure GPG
run: |
mkdir -p ~/.gnupg
chmod 700 ~/.gnupg
echo "use-agent" > ~/.gnupg/gpg.conf
echo "pinentry-mode loopback" >> ~/.gnupg/gpg.conf
echo "default-cache-ttl 600" >> ~/.gnupg/gpg-agent.conf
echo "max-cache-ttl 7200" >> ~/.gnupg/gpg-agent.conf
gpgconf --reload gpg-agent
- name: Import GPG Key
run: |
echo "${{ secrets.GPG_PRIVATE_KEY_TEST }}" | gpg --batch --import
gpg --list-secret-keys
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY_TEST}}
- name: GPG Configuration and Key Status
run: |
gpg --list-keys
gpg --list-secret-keys
gpg --version
gpgconf --list-dir
- name: Build and test post generation
# run: |
# cd Xero-Java
# mvn clean verify -DskipTests=true
run: |
export GPG_TTY=$(tty)
mvn clean verify -DskipTests=true -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE_TEST }}
working-directory: Xero-Java
env:
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE_TEST }}