Bump gradle/gradle-build-action from 2.7.0 to 2.7.1 #149
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@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 | |
# 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@56b90f209b02bf6d1deae490e9ef18b21a389cd4 | |
static_analysis_detekt: | |
needs: validate_gradle_wrapper | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout | |
timeout-minutes: 1 | |
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 | |
- name: Set up Java | |
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 | |
timeout-minutes: 1 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
- name: Set up Gradle | |
uses: gradle/gradle-build-action@243af859f8ca30903d9d7f7936897ca0358ba691 | |
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@0b7f8abb1508181956e8e162db84b466c27e18ce | |
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@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 | |
- name: Set up Java | |
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 | |
timeout-minutes: 1 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
- name: Set up Gradle | |
uses: gradle/gradle-build-action@243af859f8ca30903d9d7f7936897ca0358ba691 | |
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@0b7f8abb1508181956e8e162db84b466c27e18ce | |
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@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 | |
- name: Set up Java | |
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 | |
timeout-minutes: 1 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
- name: Set up Gradle | |
uses: gradle/gradle-build-action@243af859f8ca30903d9d7f7936897ca0358ba691 | |
timeout-minutes: 3 | |
- name: Test | |
timeout-minutes: 12 | |
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@0b7f8abb1508181956e8e162db84b466c27e18ce | |
timeout-minutes: 1 | |
if: ${{ always() }} | |
with: | |
name: Test results | |
path: ~/artifacts |