Skip to content

Ensure crumb is loaded before querying API #283

Ensure crumb is loaded before querying API

Ensure crumb is loaded before querying API #283

Workflow file for this run

on:
push:
branches:
- "master"
paths:
- "**.rs"
- "Cargo.toml"
- "Cargo.lock"
pull_request:
branches:
- "master"
paths:
- "**.rs"
- "Cargo.toml"
- "Cargo.lock"
name: Check
jobs:
test:
name: "Check"
strategy:
matrix:
os:
- "windows-latest"
- "ubuntu-latest"
- "macos-latest"
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install GNU tar for macos # Fix for macos caching, https://github.com/actions/cache/issues/403
if: matrix.os == 'macos-latest'
run: |
brew install gnu-tar
echo "/usr/local/opt/gnu-tar/libexec/gnubin" >> $GITHUB_PATH
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-check-${{ hashFiles('**/Cargo.lock') }}
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
args: --all --all-targets