diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c028af6..6261cd6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,6 +5,7 @@ name: CI # Controls when the action will run. Triggers the workflow on push or pull request # events but only for the master branch on: + workflow_dispatch: push: branches: [ master ] pull_request: @@ -20,15 +21,15 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Validate Gradle Wrapper uses: gradle/wrapper-validation-action@v1 - # Install and setup JDK 11 - name: Setup JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: + distribution: 'zulu' java-version: 11 # Runs a single command using the runners shell @@ -36,9 +37,8 @@ jobs: run: ./gradlew check --stacktrace - name: Archive test logs - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 if: failure() with: name: gradle-test-logs path: ./**/build/reports/tests -