-
Notifications
You must be signed in to change notification settings - Fork 9
36 lines (27 loc) · 886 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: CI
on:
push:
pull_request:
jobs:
test:
name: Rust ${{matrix.rust}} on ${{matrix.os}}
runs-on: ${{matrix.os}}-latest
strategy:
fail-fast: false
matrix:
rust: [nightly, beta, stable]
os: [ubuntu, macos, windows]
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{matrix.rust}}
profile: minimal
override: true
# A nightly toolchain is required for cargo-expand to work, even if the
# toolchain with which tests are run is not nightly.
- run: rustup toolchain install nightly
if: matrix.rust != 'nightly'
- run: cargo install cargo-expand
- run: cargo test --manifest-path test-project/Cargo.toml -- --nocapture
- run: cargo test --manifest-path test-procmacro-project/Cargo.toml -- --nocapture