Skip to content

Commit 7ca5dc3

Browse files
authored
update CI (#42)
1 parent 5aadef0 commit 7ca5dc3

File tree

3 files changed

+16
-31
lines changed

3 files changed

+16
-31
lines changed

.github/dependabot.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
version: 2
22
updates:
3-
- package-ecosystem: cargo
4-
directory: "/"
5-
schedule:
6-
interval: daily
7-
- package-ecosystem: github-actions
8-
directory: "/"
9-
schedule:
10-
interval: daily
3+
- package-ecosystem: cargo
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
- package-ecosystem: github-actions
8+
directory: "/"
9+
schedule:
10+
interval: daily
11+
ignore:
12+
- dependency-name: dtolnay/rust-toolchain

.github/workflows/CI.yml

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -34,42 +34,28 @@ jobs:
3434
# rust: stable
3535
steps:
3636
- uses: actions/checkout@v3
37-
- uses: actions-rs/toolchain@v1
37+
- uses: dtolnay/rust-toolchain@master
3838
with:
39-
profile: minimal
4039
toolchain: ${{ matrix.rust }}
41-
override: true
42-
- uses: actions-rs/cargo@v1
43-
with:
44-
command: test
45-
args: --all-features
40+
- run: cargo test --all-features
4641

4742
fmt:
4843
name: format
4944
runs-on: ubuntu-latest
5045
steps:
5146
- uses: actions/checkout@v3
52-
- uses: actions-rs/toolchain@v1
47+
- uses: dtolnay/rust-toolchain@nightly
5348
with:
54-
toolchain: nightly
55-
override: true
56-
profile: minimal
5749
components: rustfmt
58-
- uses: actions-rs/cargo@v1
59-
with:
60-
command: fmt
61-
args: --all -- --check
50+
- run: cargo fmt --all --check
6251

6352
clippy:
6453
name: lint
6554
runs-on: ubuntu-latest
6655
steps:
6756
- uses: actions/checkout@v3
68-
- uses: actions-rs/toolchain@v1
57+
- uses: dtolnay/rust-toolchain@nightly
6958
with:
70-
toolchain: nightly
71-
override: true
72-
profile: minimal
7359
components: clippy
7460
- uses: actions-rs/clippy-check@v1
7561
with:

.github/workflows/coverage.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,8 @@ jobs:
1414
uses: actions/checkout@v3
1515

1616
- name: Install nightly toolchain
17-
uses: actions-rs/toolchain@v1
17+
uses: dtolnay/rust-toolchain@nightly
1818
with:
19-
toolchain: nightly
20-
profile: minimal
21-
override: true
2219
components: llvm-tools-preview
2320

2421
- name: Install cargo-llvm-cov

0 commit comments

Comments
 (0)