-
Notifications
You must be signed in to change notification settings - Fork 46
46 lines (42 loc) · 1.17 KB
/
test.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
45
46
name: Test
on:
push:
branches:
- master
schedule:
- cron: '0 6 * * SAT'
pull_request:
branches:
- master
release:
types: # This configuration does not affect the page_build event above
- created
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- name: Install latest beta
uses: actions-rs/toolchain@v1
with:
toolchain: beta
- name: Build
run: cargo build --all --verbose
- name: Run tests stable
run: RSTEST_TEST_CHANNEL=stable cargo test --all --verbose
- name: Run tests beta
run: RSTEST_TEST_CHANNEL=beta cargo test --all --verbose
- name: Run tests nightly
run: RSTEST_TEST_CHANNEL=nightly cargo test --all --verbose
msrv:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: taiki-e/install-action@cargo-hack
- run: cargo hack check --rust-version --workspace --ignore-private
- run: cargo hack test --rust-version --workspace --exclude rstest_reuse --ignore-private