diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6338112..cdde612 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,21 +15,16 @@ jobs: # test against latest update of each major Java version, as well as specific updates of LTS versions: java: [ 17.0.4 ] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up JDK ${{ matrix.java }} - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: + distribution: liberica + cache: 'maven' + cache-dependency-path: 'pom.xml' java-version: ${{ matrix.java }} - - 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: Build with Maven + - name: Test with Maven run: | pwd ls -lah - ./mvnw clean package - rm -rf ~/.m2/repository/name/nkonev/r2dbc-migrate + ./mvnw clean test