Bump actions/checkout from 4.1.2 to 4.1.3 #221
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@1d96c772d19495a3b5c517cd2bc0cb401ea0529f | |
# 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@5188e9b5527a0a094cee21e2fe9a8ca44b4629af | |
static_analysis_detekt: | |
needs: validate_gradle_wrapper | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout | |
timeout-minutes: 1 | |
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f | |
- 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@e2097ccd7e8ed48671dc068ac4efa86d25745b39 | |
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@1746f4ab65b179e0ea60a494b83293b640dd5bba | |
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@1d96c772d19495a3b5c517cd2bc0cb401ea0529f | |
- 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@e2097ccd7e8ed48671dc068ac4efa86d25745b39 | |
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@1746f4ab65b179e0ea60a494b83293b640dd5bba | |
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@1d96c772d19495a3b5c517cd2bc0cb401ea0529f | |
- 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@e2097ccd7e8ed48671dc068ac4efa86d25745b39 | |
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@1746f4ab65b179e0ea60a494b83293b640dd5bba | |
timeout-minutes: 1 | |
if: ${{ always() }} | |
with: | |
name: Test results | |
path: ~/artifacts |