mirror of
https://github.com/Swatinem/rust-cache.git
synced 2024-11-24 15:26:08 +08:00
31 lines
582 B
YAML
31 lines
582 B
YAML
name: CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
selftest:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
|
|
name: Test Action on ${{ matrix.os }}
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
profile: minimal
|
|
override: true
|
|
|
|
- uses: ./
|
|
with:
|
|
cache-on-failure: true
|
|
|
|
- run: |
|
|
cargo install cargo-deny --locked
|
|
cargo check
|
|
cargo test |