Bump gradle/wrapper-validation-action from 2.1.3 to 3.3.0 #216
Workflow file for this run
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: Pull Request | |
on: | |
pull_request: | |
paths-ignore: | |
- '.github/ISSUE_TEMPLATE/*' | |
- '.github/PULL_REQUEST_TEMPLATE.md' | |
- 'LICENSE' | |
- 'README.md' | |
- 'docs/**' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
validate_gradle_wrapper: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout | |
timeout-minutes: 1 | |
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 | |
# Gradle Wrapper validation can be flaky | |
# https://github.com/gradle/wrapper-validation-action/issues/40 | |
- name: Gradle Wrapper Validation | |
timeout-minutes: 1 | |
uses: gradle/wrapper-validation-action@460a3ca55fc5d559238a0efc7fa9f7465df8585d | |
static_analysis_detekt: | |
needs: validate_gradle_wrapper | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout | |
timeout-minutes: 1 | |
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 | |
- name: Set up Java | |
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 | |
timeout-minutes: 1 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
- name: Set up Gradle | |
uses: gradle/gradle-build-action@bdf99f9dada2506e990bac6de8ec5e3de34a04f1 | |
timeout-minutes: 3 | |
- name: Detekt | |
timeout-minutes: 4 | |
run: | | |
./gradlew detektAll | |
- name: Collect Artifacts | |
timeout-minutes: 1 | |
if: ${{ always() }} | |
run: | | |
export ARTIFACTS_DIR_PATH=~/artifacts | |
export REPORTS_ZIP_PATH=${ARTIFACTS_DIR_PATH}/static_analysis_detekt.zip | |
mkdir ${ARTIFACTS_DIR_PATH} | |
zip -r ${REPORTS_ZIP_PATH} . -i build/reports/detekt/\* | |
- name: Upload Artifacts | |
if: ${{ always() }} | |
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 | |
timeout-minutes: 1 | |
with: | |
name: Detekt static analysis results | |
path: ~/artifacts | |
static_analysis_ktlint: | |
needs: validate_gradle_wrapper | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout | |
timeout-minutes: 1 | |
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 | |
- name: Set up Java | |
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 | |
timeout-minutes: 1 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
- name: Set up Gradle | |
uses: gradle/gradle-build-action@bdf99f9dada2506e990bac6de8ec5e3de34a04f1 | |
timeout-minutes: 3 | |
- name: Ktlint | |
timeout-minutes: 4 | |
run: | | |
./gradlew ktlint | |
- name: Collect Artifacts | |
timeout-minutes: 1 | |
if: ${{ always() }} | |
run: | | |
export ARTIFACTS_DIR_PATH=~/artifacts | |
export REPORTS_ZIP_PATH=${ARTIFACTS_DIR_PATH}/static_analysis_ktlint.zip | |
mkdir ${ARTIFACTS_DIR_PATH} | |
zip -r ${REPORTS_ZIP_PATH} . -i build/reports/ktlint/\* | |
- name: Upload Artifacts | |
if: ${{ always() }} | |
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 | |
timeout-minutes: 1 | |
with: | |
name: Ktlint static analysis results | |
path: ~/artifacts | |
test: | |
needs: validate_gradle_wrapper | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout | |
timeout-minutes: 1 | |
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 | |
- name: Set up Java | |
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 | |
timeout-minutes: 1 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
- name: Set up Gradle | |
uses: gradle/gradle-build-action@bdf99f9dada2506e990bac6de8ec5e3de34a04f1 | |
timeout-minutes: 3 | |
- name: Test | |
timeout-minutes: 20 | |
run: | | |
./gradlew check | |
- name: Collect Artifacts | |
timeout-minutes: 1 | |
if: ${{ always() }} | |
run: | | |
export ARTIFACTS_DIR_PATH=~/artifacts | |
export TEST_RESULTS_ZIP_PATH=${ARTIFACTS_DIR_PATH}/test_results.zip | |
mkdir ${ARTIFACTS_DIR_PATH} | |
zip -r ${TEST_RESULTS_ZIP_PATH} . -i build/reports/\* \*/build/reports/\* | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 | |
timeout-minutes: 1 | |
if: ${{ always() }} | |
with: | |
name: Test results | |
path: ~/artifacts |