From 16c5210c933376fb95696f2e3af893dee5a7fcb9 Mon Sep 17 00:00:00 2001 From: Romuald Rousseau Date: Fri, 4 Oct 2024 10:27:01 +0800 Subject: [PATCH] chore: Add archery-commons github actions --- .github/workflows/archery-commons.yml | 23 +++++++++++++++++++++++ .github/workflows/maven-test.yml | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/archery-commons.yml diff --git a/.github/workflows/archery-commons.yml b/.github/workflows/archery-commons.yml new file mode 100644 index 00000000..2dc4c2ad --- /dev/null +++ b/.github/workflows/archery-commons.yml @@ -0,0 +1,23 @@ +name: archery-commons + +on: + push: + branches: + - '**' + - "!main" + paths: + - archery/** + - .github/workflows/archery-commons.yml + +jobs: + build: + uses: ./.github/workflows/maven-build.yml + with: + service: archery-commons + + test: + needs: [build] + uses: ./.github/workflows/maven-test.yml + with: + service: archery-commons + secrets: inherit diff --git a/.github/workflows/maven-test.yml b/.github/workflows/maven-test.yml index e2d68816..0b221186 100644 --- a/.github/workflows/maven-test.yml +++ b/.github/workflows/maven-test.yml @@ -31,6 +31,6 @@ jobs: run: mvn -U -B clean initialize --projects :${{ inputs.service }} --also-make - name: Test project - run: mvn -U -B test --projects :${{ inputs.service }} --also-make + run: mvn -U -B -Dtest=UnitTestSuite -Dsurefire.failIfNoSpecifiedTests=false test --projects :${{ inputs.service }} --also-make env: OPENAI_KEY: ${{ secrets.OPENAI_KEY }}