diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index c8aeb3a..ddac693 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -1,6 +1,6 @@ # This workflow will build a Java project with Maven # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven - +# name: Java CI with Maven on: @@ -14,11 +14,18 @@ jobs: runs-on: ubuntu-latest + permissions: + contents: read + packages: read steps: - - uses: actions/checkout@v2 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + - uses: actions/checkout@v6 + - name: Set up JDK 17 + uses: actions/setup-java@v5 with: - java-version: 1.8 + java-version: 17 + distribution: 'temurin' - name: Build with Maven - run: mvn -B package --file pom.xml + run: mvn clean verify + env: + # This token is automatically provided by GitHub Actions + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}