name: ci

on:
  - push
  - pull_request

jobs:
  test:
    strategy:
      matrix:
        java: [ 8, 16 ]
    runs-on: ubuntu-latest
    steps:

      - name: Checkout
        uses: actions/checkout@v3

      - name: Setup
        uses: actions/setup-java@v3
        with:
          distribution: 'zulu'
          java-version: ${{ matrix.java }}

      - name: Cache
        uses: actions/cache@v2
        with:
          path: ~/.m2
          key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
          restore-keys: ${{ runner.os }}-m2

      - name: Package
        run: mvn -B clean package jacoco:report

      - name: Coverage
        uses: codecov/codecov-action@v2.1.0
        with:
          file: target/site/jacoco/jacoco.xml

name: ci

on:
  - push
  - pull_request

jobs:
  test:
    strategy:
      matrix:
        java: [ 8, 16 ]
    runs-on: ubuntu-latest
    steps:

      - name: Checkout
        uses: actions/checkout@v3

      - name: Setup
        uses: actions/setup-java@v3
        with:
          distribution: 'zulu'
          java-version: ${{ matrix.java }}

      - name: Cache
        uses: actions/cache@v3
        with:
          path: ~/.m2
          key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
          restore-keys: ${{ runner.os }}-m2

      - name: Package
        run: mvn -B clean package jacoco:report

      - name: Coverage
        uses: codecov/codecov-action@v2.1.0
        with:
          file: target/site/jacoco/jacoco.xml

Update actions/cache action to v3
Update actions/cache action to v3
