simpler code for test if item matches #4
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: CI | |
on: | |
push: | |
pull_request: | |
jobs: | |
test: | |
name: "Test on JDK ${{ matrix.java }}" | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java: [ 16, 17 ] | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v2 | |
- name: "Set up JDK ${{ matrix.java }}" | |
uses: actions/setup-java@v2 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: adopt | |
- 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- | |
- name: "Test" | |
run: mvn --batch-mode verify |