Merge pull request #387 from XeroAPI/PETOSS-533-Publish-Java-SDK-afte… #98
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
gpg-passphrase: GPG_PASSPHRASE | |
- name: Import GPG Key | |
run: | | |
echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --batch --import | |
env: | |
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY}} | |
- name: Build and test post generation | |
run: | | |
export GPG_TTY=$(tty) | |
mvn clean verify -DskipTests=true | |
env: | |
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | |
working-directory: Xero-Java |