forked from mitsuhiko/insta
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 993 Bytes
/
tests.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
37
38
39
40
41
42
43
44
name: Tests
on: [push, pull_request]
jobs:
test-latest:
name: Test on Latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
- name: Test
run: make test
test-stable:
name: Test on 1.61.0
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.61.0
- uses: Swatinem/rust-cache@v2
- name: Use Cargo.lock.msrv
run: cp Cargo.lock.msrv Cargo.lock
- name: Test
run: make cargotest
build-old-stable:
name: Check on 1.51.0
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.51.0
- uses: Swatinem/rust-cache@v2
- name: Check
run: cargo check --no-default-features