From 4e112c482351c5cdd949acd15c12904e472f520e Mon Sep 17 00:00:00 2001 From: vigneshk-tw Date: Wed, 23 Oct 2024 12:26:00 +0530 Subject: [PATCH 1/4] 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 From f085eff885fb07cfa560d9efa742eab5758e4b0f Mon Sep 17 00:00:00 2001 From: vigneshk-tw Date: Wed, 23 Oct 2024 12:28:42 +0530 Subject: [PATCH 2/4] skip running tests --- .github/workflows/build-lint-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-lint-test.yml b/.github/workflows/build-lint-test.yml index 808b0592..81ab2baf 100644 --- a/.github/workflows/build-lint-test.yml +++ b/.github/workflows/build-lint-test.yml @@ -42,7 +42,7 @@ jobs: - name: Build and test post generation run: | export GPG_TTY=$(tty) - mvn clean verify -DskipTests=false + mvn clean verify -DskipTests=true env: MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} working-directory: Xero-Java From 7d098b9741cac2b6c2562b4878c0e1a57f867750 Mon Sep 17 00:00:00 2001 From: vigneshk-tw Date: Fri, 25 Oct 2024 13:30:09 +0530 Subject: [PATCH 3/4] remove skipping tests --- .github/workflows/build-lint-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-lint-test.yml b/.github/workflows/build-lint-test.yml index 81ab2baf..f5c79fb1 100644 --- a/.github/workflows/build-lint-test.yml +++ b/.github/workflows/build-lint-test.yml @@ -42,7 +42,7 @@ jobs: - 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 From 139cee2a19946f5d941b0d3a2fa8f189e09d0b58 Mon Sep 17 00:00:00 2001 From: vigneshk-tw Date: Mon, 28 Oct 2024 10:51:56 +0530 Subject: [PATCH 4/4] remove check for prism kill --- .github/workflows/build-lint-test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build-lint-test.yml b/.github/workflows/build-lint-test.yml index f5c79fb1..e455115a 100644 --- a/.github/workflows/build-lint-test.yml +++ b/.github/workflows/build-lint-test.yml @@ -48,6 +48,5 @@ jobs: working-directory: Xero-Java - name: Stop PRISM - if: success() || failure() run: pkill -f prism working-directory: Xero-Java