Skip to content

Commit b14fb2e

Browse files
committed
Update github actions
1 parent 4d061f8 commit b14fb2e

File tree

2 files changed

+22
-32
lines changed

2 files changed

+22
-32
lines changed

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "github-actions"
9+
directory: "/"
10+
schedule:
11+
interval: "monthly"

.github/workflows/CI.yml

Lines changed: 11 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,9 @@ jobs:
1111
name: Check
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
15-
- uses: actions-rs/toolchain@v1
16-
with:
17-
profile: minimal
18-
toolchain: stable
19-
override: true
20-
- uses: actions-rs/cargo@v1
21-
with:
22-
command: check
14+
- uses: actions/checkout@v3
15+
- uses: dtolnay/rust-toolchain@stable
16+
- run: cargo check --all-features
2317

2418
test:
2519
name: Test Suite
@@ -28,32 +22,17 @@ jobs:
2822
matrix:
2923
os: [ubuntu-latest, macos-latest, windows-latest]
3024
steps:
31-
- uses: actions/checkout@v2
32-
- uses: actions-rs/toolchain@v1
33-
with:
34-
profile: minimal
35-
toolchain: stable
36-
override: true
37-
- uses: actions-rs/cargo@v1
38-
with:
39-
command: test
40-
- uses: actions-rs/cargo@v1
41-
with:
42-
command: test
43-
args: --all-features
25+
- uses: actions/checkout@v3
26+
- uses: dtolnay/rust-toolchain@stable
27+
- run: cargo test
28+
- run: cargo test --all-features
4429

4530
fmt:
4631
name: Rustfmt
4732
runs-on: ubuntu-latest
4833
steps:
49-
- uses: actions/checkout@v2
50-
- uses: actions-rs/toolchain@v1
51-
with:
52-
profile: minimal
53-
toolchain: stable
54-
override: true
55-
- run: rustup component add rustfmt
56-
- uses: actions-rs/cargo@v1
34+
- uses: actions/checkout@v3
35+
- uses: dtolnay/rust-toolchain@stable
5736
with:
58-
command: fmt
59-
args: --all -- --check
37+
components: rustfmt
38+
- run: cargo fmt --all -- --check

0 commit comments

Comments
 (0)