Skip to content
Snippets Groups Projects
Unverified Commit 1709a60b authored by Ariya Hidayat's avatar Ariya Hidayat Committed by GitHub
Browse files

Use GitHub Actions to run back-end tests (#19786)

parent b08cbcca
No related branches found
No related tags found
No related merge requests found
......@@ -1002,8 +1002,8 @@ workflows:
- clojure:
matrix:
parameters:
edition: ["ee", "oss"]
java-version: ["java-11", "java-17"]
edition: ["ee"]
java-version: ["java-11"]
name: be-tests-<< matrix.java-version >>-<< matrix.edition >>
requires:
- be-deps
......
......@@ -40,3 +40,46 @@ jobs:
m2-cache-key: 'namespace-decls'
- run: clojure -X:dev:ee:ee-dev:drivers:drivers-dev:test:namespace-checker
name: Check ns forms
be-tests:
runs-on: ubuntu-20.04
name: be-tests-java-${{ matrix.java-version }}-${{ matrix.edition }}
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
edition: [oss, ee]
java-version: [11, 17]
steps:
- uses: actions/checkout@v2
- name: Prepare front-end environment
uses: ./.github/actions/prepare-frontend
- name: Prepare back-end environment
uses: ./.github/actions/prepare-backend
- run: yarn install --frozen-lockfile --prefer-offline
- name: Build static viz frontend
run: yarn build-static-viz
- name: Compile Java source file(s)
run: clojure -X:deps prep
- name: Compile driver AOT namespaces
working-directory: modules/drivers
run: clojure -X:deps prep
- name: Fetch dependencies
run: clojure -P -X:dev:ci:ee:ee-dev:drivers:drivers-dev
- name: Fetch dependencies (./bin/build/build-mb)
working-directory: bin/build-mb
run: clojure -P -M:test
- name: Fetch dependencies (./bin/build/build-drivers)
working-directory: bin/build-drivers
run: clojure -P -M:test
- name: Run tests
run: clojure -X:dev:ci:test:${{ matrix.edition }}:${{ matrix.edition }}-dev
- name: Publish Test Report (JUnit)
uses: mikepenz/action-junit-report@v2
if: always()
with:
report_paths: 'target/junit/**/*_test.xml'
check_name: JUnit Test Report be-tests-java-${{ matrix.java-version }}-${{ matrix.edition }}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment