Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows in the github_actions group across 1 directory #119
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: Check | |
on: | |
pull_request: | |
branches: | |
- '**' | |
workflow_dispatch: | |
workflow_call: | |
concurrency: | |
cancel-in-progress: true | |
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
env: | |
GRADLE_OPTS: "-Dorg.gradle.daemon=true" | |
jobs: | |
check: | |
name: Check on ${{ matrix.os.runner }} | |
runs-on: ${{ matrix.os.runner }} | |
defaults: | |
run: | |
shell: ${{ matrix.os.shell }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- runner: macos-latest | |
shell: bash | |
separator: '/' | |
- runner: ubuntu-latest | |
shell: bash | |
separator: '/' | |
- runner: windows-latest | |
shell: msys2 {0} | |
separator: '\' | |
steps: | |
- uses: msys2/setup-msys2@v2 | |
if: ${{ runner.os == 'Windows' }} | |
with: | |
release: false | |
msystem: MINGW64 | |
path-type: inherit | |
update: true | |
install: >- | |
curl | |
mingw-w64-x86_64-curl | |
- uses: actions/[email protected] | |
- name: Restore native library cache | |
id: cache-native | |
uses: actions/[email protected] | |
with: | |
path: | | |
scripts/build | |
key: ${{ runner.os }}-native-${{ hashFiles('./scripts/*') }} | |
- name: Setup native libraries | |
run: ./scripts/setup.sh | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'adopt' | |
java-version: 11 | |
- name: Restore Gradle cache | |
id: cache-gradle | |
uses: actions/[email protected] | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
~/.gradle/yarn | |
~/.gradle/nodejs | |
~/.konan | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: ${{ runner.os }}-gradle- | |
- name: Gradle Compile | |
run: ./gradlew compile assemble --scan | |
- name: Gradle Check | |
run: ./gradlew check --scan | |
- name: Make artifact location URIs relative | |
if: ${{ always() }} | |
continue-on-error: true | |
run: | | |
ls '${{ github.workspace }}${{ matrix.os.separator }}build${{ matrix.os.separator }}reports${{ matrix.os.separator }}detekt${{ matrix.os.separator }}' | |
cp '${{ github.workspace }}${{ matrix.os.separator }}build${{ matrix.os.separator }}reports${{ matrix.os.separator }}detekt${{ matrix.os.separator }}detekt.sarif' '${{ github.workspace }}${{ matrix.os.separator }}detekt.sarif.json' | |
echo "$( | |
jq --arg github_workspace ${{ github.workspace }} \ | |
'. | ( .runs[].results[].locations[].physicalLocation.artifactLocation.uri |= if test($github_workspace) then .[($github_workspace | length | . + 1):] else . end )' \ | |
'${{ github.workspace }}${{ matrix.os.separator }}detekt.sarif.json' | |
)" > '${{ github.workspace }}${{ matrix.os.separator }}detekt.sarif.json' | |
- uses: github/codeql-action/upload-sarif@v2 | |
if: ${{ always() }} | |
with: | |
sarif_file: ${{ github.workspace }}${{ matrix.os.separator }}detekt.sarif.json | |
checkout_path: ${{ github.workspace }} | |
- name: Gradle Check Sandbox | |
env: | |
LIBRARY_PATH: "C:/msys64/mingw64/lib" | |
working-directory: klip-sandbox | |
run: ./gradlew check --scan | |
- uses: actions/upload-artifact@v3 | |
if: ${{ always() }} | |
with: | |
name: reports-${{ runner.os }} | |
path: | | |
**${{ matrix.os.separator }}build${{ matrix.os.separator }}reports |