From 4e112c482351c5cdd949acd15c12904e472f520e Mon Sep 17 00:00:00 2001 From: vigneshk-tw Date: Wed, 23 Oct 2024 12:26:00 +0530 Subject: [PATCH] initial commit --- .github/workflows/build-lint-test.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-lint-test.yml b/.github/workflows/build-lint-test.yml index 74761542..808b0592 100644 --- a/.github/workflows/build-lint-test.yml +++ b/.github/workflows/build-lint-test.yml @@ -27,10 +27,27 @@ 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 -DskipTests=false env: MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} working-directory: Xero-Java + + - name: Stop PRISM + if: success() || failure() + run: pkill -f prism + working-directory: Xero-Java