Bump navikt/baseimages/temurin from 17 to 21 in /apps/backend #127
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: "verify: backend" | |
on: | |
pull_request: | |
branches: | |
- 'main' | |
paths: | |
- 'apps/backend/**' | |
- '.github/workflows/verify-backend.yaml' | |
- 'apps/backend/pom.xml' | |
workflow_dispatch: | |
jobs: | |
verify: | |
name: Verify backend compiles and run tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Cache Dependencies | |
uses: actions/[email protected] | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-maven- | |
- name: JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
- name: Run tests | |
env: | |
GITHUB_USERNAME: x-access-token | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: mvn clean test --also-make --batch-mode |