-
Notifications
You must be signed in to change notification settings - Fork 12
60 lines (59 loc) · 1.52 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: CI
on: [push, pull_request]
jobs:
test-formatting:
name: Code style check
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '-skip')"
steps:
- uses: actions/checkout@v2
- name: Run fmt test
uses: actions-rs/cargo@v1.0.1
with:
command: fmt
args: -- --check
test-stable:
name: Run tests on Stable
runs-on: ubuntu-latest
if: "contains(github.event.head_commit.message, '-stable')"
steps:
- uses: actions/checkout@v2
- name: Setup stable toolchain
uses: actions-rs/toolchain@v1.0.6
with:
toolchain: stable
- name: Run test
uses: actions-rs/cargo@v1.0.1
with:
command: test
toolchain: stable
test-beta:
name: Run tests on Beta
runs-on: ubuntu-latest
if: "contains(github.event.head_commit.message, '-beta')"
steps:
- uses: actions/checkout@v2
- name: Setup beta toolchain
uses: actions-rs/toolchain@v1.0.6
with:
toolchain: beta
- name: Run test
uses: actions-rs/cargo@v1.0.1
with:
command: test
toolchain: beta
test-nightly:
name: Run tests on Nightly
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '-skip')"
steps:
- uses: actions/checkout@v2
- name: Setup nightly toolchain
uses: actions-rs/toolchain@v1.0.6
with:
toolchain: nightly
- name: Run test
uses: actions-rs/cargo@v1.0.1
with:
command: test
toolchain: nightly