Changes triggered by further review comments #48
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: Build and Test | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
java-version: [ 22, 23-ea ] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: ${{ matrix.java-version }} | |
distribution: temurin | |
- name: Cache Maven artifacts | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Cache node | |
uses: actions/cache@v3 | |
with: | |
path: web-bundle/node | |
key: ${{ runner.os }}-node-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os}}-node- | |
- name: Cache node_modules | |
uses: actions/cache@v3 | |
with: | |
path: web-bundle/node_modules | |
key: ${{ runner.os }}-node-${{ hashFiles('**/pom.xml', '**/package.json') }} | |
restore-keys: | | |
${{ runner.os}}-node_modules- | |
- name: Build ${{ matrix.java-version }} | |
run: mvn -B clean test | |