diff options
author | Goooler <wangzongler@gmail.com> | 2022-03-24 20:56:06 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-24 15:56:06 +0300 |
commit | ea4a3bf6c55da8b6cf1dde144d8d2ae854b80243 (patch) | |
tree | 28f35d41c6928d387ca6df78308263ce2d441a73 /.github/workflows/gradle-test.pr.yml | |
parent | dd0fd03ea37554d79a02a8c6bcfd5f081dc6a1e1 (diff) | |
download | dokka-ea4a3bf6c55da8b6cf1dde144d8d2ae854b80243.tar.gz dokka-ea4a3bf6c55da8b6cf1dde144d8d2ae854b80243.tar.bz2 dokka-ea4a3bf6c55da8b6cf1dde144d8d2ae854b80243.zip |
Optimize CI a bit (#2385)
* Bump actions/checkout to v3
* Bump actions/setup-java to v3
* Use gradle-build-action
* Merge validation into check.yml
* Reformat
* Trim blank lines
* Use https
* Cleanup
* Fix
* Remove names
* Cleanup
* Rename validate to validate-wrapper
* Use cirrus-actions/rebase@v1.5
* Use cirrus-actions/rebase@1.5
Diffstat (limited to '.github/workflows/gradle-test.pr.yml')
-rw-r--r-- | .github/workflows/gradle-test.pr.yml | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/.github/workflows/gradle-test.pr.yml b/.github/workflows/gradle-test.pr.yml index 657e2494..f24bf477 100644 --- a/.github/workflows/gradle-test.pr.yml +++ b/.github/workflows/gradle-test.pr.yml @@ -1,4 +1,4 @@ -name: CI +name: Test on: pull_request @@ -9,12 +9,14 @@ jobs: version: [ 8, 11, 17 ] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 with: distribution: 'zulu' java-version: ${{ matrix.version }} - - run: ./gradlew clean test --stacktrace + - uses: gradle/gradle-build-action@v2 + with: + arguments: clean test --stacktrace test-windows: strategy: @@ -23,9 +25,11 @@ jobs: fail-fast: false runs-on: windows-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 with: distribution: 'zulu' java-version: ${{ matrix.version }} - - run: ./gradlew clean test --stacktrace --no-daemon --parallel --max-workers=1 + - uses: gradle/gradle-build-action@v2 + with: + arguments: clean test --stacktrace --no-daemon --parallel --max-workers=1 |