name: build
on: [push]
jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        java-version: [ 8, 11, 17 ]
        scala-version: [ "2.11.12", "2.12.15", "2.13.6" ]
    steps:
      - uses: actions/checkout@v2

      - uses: actions/setup-java@v2
        with:
          distribution: adopt
          java-version: ${{ matrix.java-version }}

      - name: build
        run: sbt ++${{ matrix.scala-version }} -v +test

      - uses: actions/upload-artifact@v2
        if: always()
        with:
          name: test-log (Java ${{ matrix.java-version }}, Scala ${{ matrix.scala-version }})
          path: ${{ github.workspace }}/dregex-test.log

name: build
on: [push]
jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        java-version: [ 8, 11, 17 ]
        scala-version: [ "2.11.12", "2.12.15", "2.13.6" ]
    steps:
      - uses: actions/checkout@v2

      - uses: actions/setup-java@v3
        with:
          distribution: adopt
          java-version: ${{ matrix.java-version }}

      - name: build
        run: sbt ++${{ matrix.scala-version }} -v +test

      - uses: actions/upload-artifact@v2
        if: always()
        with:
          name: test-log (Java ${{ matrix.java-version }}, Scala ${{ matrix.scala-version }})
          path: ${{ github.workspace }}/dregex-test.log

Update actions/setup-java action to v3
Update actions/setup-java action to v3
