-
Notifications
You must be signed in to change notification settings - Fork 9
50 lines (42 loc) · 884 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: CI
on:
push:
branches:
- main
pull_request:
schedule:
- cron: '0 1 27 * *'
jobs:
main:
name: Main
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust:
- nightly
- stable
- 1.12.0
include:
- rust: nightly
components: clippy
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
profile: minimal
override: true
components: ${{ matrix.components }}
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
- if: ${{ matrix.rust == 'nightly' }}
name: Check Clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings