Skip to content

Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows #171

Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows

Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows #171

Workflow file for this run

name: Check
defaults:
run:
shell: bash
on:
pull_request:
branches:
- '**'
workflow_dispatch:
env:
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
MONGO_URL: ${{ secrets.MONGO_URL }}
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
- runner: ubuntu-latest
shell: bash
- runner: windows-latest
shell: msys2 {0}
steps:
- uses: msys2/setup-msys2@v2
if: ${{ runner.os == 'Windows' }}
with:
msystem: MINGW64
path-type: inherit
update: true
install: >-
tar
make
mingw-w64-x86_64-gcc
mingw-w64-x86_64-cmake
mingw-w64-x86_64-extra-cmake-modules
mingw64/mingw-w64-x86_64-cyrus-sasl
- uses: actions/checkout@v2
- name: Restore libmongoc cache
id: cache-libmongoc
uses: actions/cache@v2.1.7
with:
path: |
scripts/build
key: ${{ runner.os }}-libmongoc-${{ hashFiles('./scripts/*') }}
- name: Setup libmongoc
run: ./scripts/setup.sh
- uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: 11
- name: Restore Gradle cache
id: cache-gradle
uses: actions/cache@v2.1.7
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
- uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: reports-${{ runner.os }}
path: |
**/build/reports