Update actions/checkout action to v4 #418
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
# Trigger on merges to `main` to allow `gradle/gradle-build-action` runs to write their caches. | |
# https://github.com/gradle/gradle-build-action#using-the-caches-read-only | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: gradle/wrapper-validation-action@v1 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: check jacocoTestReport | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: check jacocoTestReport | |
- uses: EnricoMi/publish-unit-test-result-action@v2 | |
with: | |
junit_files: '**/build/test-results/**/*.xml' | |
report_individual_runs: 'true' | |
- name: publishToMavenLocal | |
if: github.repository_owner == 'JuulLabs' | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: | | |
-PVERSION_NAME=unspecified | |
-PsigningInMemoryKey=${{ secrets.SIGNING_KEY }} | |
-PsigningInMemoryKeyPassword=${{ secrets.SIGNING_PASSWORD }} | |
publishToMavenLocal | |
- uses: codecov/codecov-action@v3 |