Skip to content

Commit

Permalink
Merge pull request #391 from XeroAPI/PETOSS-585-Enable-Test-Step-in-C…
Browse files Browse the repository at this point in the history
…ode-Gen-and-SDK-Repos

Petoss 585 enable test step in code gen and sdk repos
  • Loading branch information
vigneshk-tw authored Oct 28, 2024
2 parents 7883f7f + 139cee2 commit 95918ed
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/build-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,26 @@ jobs:
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY}}

- name: Set up Node environment
uses: actions/setup-node@v2
with:
node-version: 20

- name: Install Prism
run: npm install -g @stoplight/prism-cli

- name: Start PRISM Server
run: ./start-prism.sh & sleep 15
working-directory: Xero-Java/src/test/java/com/xero/api/util

- name: Build and test post generation
run: |
export GPG_TTY=$(tty)
mvn clean verify -DskipTests=true
mvn clean verify
env:
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
working-directory: Xero-Java

- name: Stop PRISM
run: pkill -f prism
working-directory: Xero-Java

0 comments on commit 95918ed

Please sign in to comment.