rust-cache/.github/workflows/selftest.yml

78 lines
1.5 KiB
YAML
Raw Normal View History

name: CI
on: [push, pull_request]
jobs:
simple:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
name: Test root check/test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- run: |
2022-07-09 18:38:23 +08:00
rustup toolchain install stable --profile minimal
rustup default stable
- uses: ./
with:
workspace-paths: tests
- run: |
cd tests
cargo check
cargo test
install:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
name: Test `cargo install` on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- run: |
2022-07-09 18:38:23 +08:00
rustup toolchain install stable --profile minimal
rustup default stable
- uses: ./
- run: cargo install cargo-deny --locked
workspaces:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
name: Test multiple workspaces on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- run: |
2022-07-09 18:38:23 +08:00
rustup toolchain install stable --profile minimal --target wasm32-unknown-unknown
rustup default stable
- uses: ./
2021-06-29 05:18:07 +08:00
with:
workspace-paths: |
tests
tests/wasm-workspace
- run: |
cd tests
cargo check
cd wasm-workspace
cargo check