From ea4a3bf6c55da8b6cf1dde144d8d2ae854b80243 Mon Sep 17 00:00:00 2001 From: Goooler Date: Thu, 24 Mar 2022 20:56:06 +0800 Subject: 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 --- .github/workflows/check.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/check.yml (limited to '.github/workflows/check.yml') diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 00000000..04b3cb72 --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,22 @@ +name: Check + +on: pull_request + +jobs: + validate-wrapper: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: gradle/wrapper-validation-action@v1 + + apiCheck: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + distribution: 'zulu' + java-version: 11 + - uses: gradle/gradle-build-action@v2 + with: + arguments: apiCheck --stacktrace -- cgit