Merge pull request #3589 from ingef/dependabot/maven/backend/commons-… #3771
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Test Backend" | |
on: | |
push: | |
branches: | |
# Always run on protected branches | |
- master | |
- develop | |
- release | |
pull_request: | |
paths: | |
- "backend/**" | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
steps: | |
- name: Cache local Maven repository | |
uses: actions/cache@v2 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: Set up JDK | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
overwrite-settings: false | |
- name: Build Backend | |
run: mvn -T 1C install -pl backend -DskipTests -am | |
- name: Unit Test | |
run: mvn test -T 1C -pl backend -DexcludedGroups="INTEGRATION_PROGRAMMATIC, INTEGRATION_JSON, INTEGRATION_SQL_BACKEND" | |
- name: Programmatic Integration Tests | |
run: mvn test -T 1C -pl backend -Dgroups="INTEGRATION_PROGRAMMATIC" | |
- name: JSON based Integration Tests | |
run: mvn test -T 1C -pl backend -Dgroups="INTEGRATION_JSON" | |
- name: SQL based Integration Tests | |
run: mvn test -T 1C -pl backend -Dgroups="INTEGRATION_SQL_BACKEND" |