2021-02-16 15:53:35 +08:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
2022-07-09 18:23:37 +08:00
|
|
|
simple:
|
2021-02-16 15:53:35 +08:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
|
|
|
2022-07-09 18:23:37 +08:00
|
|
|
name: Test root check/test on ${{ matrix.os }}
|
2021-02-16 15:53:35 +08:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
2022-07-09 18:23:37 +08:00
|
|
|
- run: |
|
2022-07-09 18:38:23 +08:00
|
|
|
rustup toolchain install stable --profile minimal
|
2022-07-09 18:23:37 +08:00
|
|
|
rustup default stable
|
|
|
|
|
|
|
|
- uses: ./
|
2021-02-16 15:53:35 +08:00
|
|
|
with:
|
2022-07-09 21:39:43 +08:00
|
|
|
workspaces: tests
|
2022-07-09 18:23:37 +08:00
|
|
|
|
|
|
|
- run: |
|
|
|
|
cargo check
|
|
|
|
cargo test
|
2022-07-09 21:28:28 +08:00
|
|
|
working-directory: tests
|
2022-07-09 18:23:37 +08:00
|
|
|
|
|
|
|
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
|
2022-07-09 18:23:37 +08:00
|
|
|
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
|
2022-07-09 18:23:37 +08:00
|
|
|
rustup default stable
|
2021-02-16 15:53:35 +08:00
|
|
|
|
|
|
|
- uses: ./
|
2021-06-29 05:18:07 +08:00
|
|
|
with:
|
2022-07-09 21:39:43 +08:00
|
|
|
workspaces: |
|
2022-07-09 18:23:37 +08:00
|
|
|
tests
|
|
|
|
tests/wasm-workspace
|
2021-02-16 15:53:35 +08:00
|
|
|
|
2022-07-09 21:28:28 +08:00
|
|
|
- run: cargo check
|
|
|
|
working-directory: tests
|
|
|
|
|
|
|
|
- run: cargo check
|
|
|
|
working-directory: tests/wasm-workspace
|