Updating .github/test.yaml
This commit is contained in:
parent
ec63e1cef7
commit
1bf3c10334
1 changed files with 20 additions and 9 deletions
29
.github/workflows/test.yml
vendored
29
.github/workflows/test.yml
vendored
|
|
@ -2,20 +2,31 @@ name: Run tests
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [main]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main ]
|
branches: [main]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
check-rust-compat:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
rust_version: ["1.72", "1.73", "1.74"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: rustup toolchain install ${{ matrix.rust_version }}
|
||||||
- uses: Swatinem/rust-cache@v1
|
run: |
|
||||||
- name: Run tests
|
rustup toolchain install ${{ matrix.rust_version }}
|
||||||
run: cargo test
|
- uses: actions/checkout@v2
|
||||||
|
- run: rustup override set ${{ matrix.rust_version }}
|
||||||
|
- name: cargo check
|
||||||
|
run: cargo check
|
||||||
|
test:
|
||||||
|
runs-on: windows-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: Swatinem/rust-cache@v1
|
||||||
|
- name: Run tests
|
||||||
|
run: cargo test
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue