Skip to content

Commit d3d50ef

Browse files
nickelcseanmonstar
authored andcommitted
chore: Replace unmaintained/outdated GitHub Actions
1 parent 45b9bcc commit d3d50ef

File tree

1 file changed

+12
-36
lines changed

1 file changed

+12
-36
lines changed

.github/workflows/CI.yml

Lines changed: 12 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,14 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v1
16+
uses: actions/checkout@v3
1717

1818
- name: Install Rust
19-
uses: actions-rs/toolchain@v1
19+
uses: dtolnay/rust-toolchain@stable
2020
with:
21-
profile: minimal
22-
toolchain: stable
23-
override: true
2421
components: rustfmt
2522

26-
- name: cargo fmt --check
27-
uses: actions-rs/cargo@v1
28-
with:
29-
command: fmt
30-
args: --all -- --check
23+
- run: cargo fmt --all --check
3124

3225
test:
3326
name: Test
@@ -43,38 +36,26 @@ jobs:
4336
- stable
4437
steps:
4538
- name: Checkout
46-
uses: actions/checkout@v1
39+
uses: actions/checkout@v3
4740

4841
- name: Install Rust (${{ matrix.rust }})
49-
uses: actions-rs/toolchain@v1
42+
uses: dtolnay/rust-toolchain@master
5043
with:
51-
profile: minimal
5244
toolchain: ${{ matrix.rust }}
53-
override: true
5445

5546
- name: Install libssl-dev
5647
run: sudo apt-get update && sudo apt-get install libssl-dev
5748
- name: Build without unstable flag
58-
uses: actions-rs/cargo@v1
59-
with:
60-
command: build
49+
run: cargo build
6150

6251
- name: Check with unstable flag
63-
uses: actions-rs/cargo@v1
64-
with:
65-
command: check
66-
args: --features unstable
52+
run: cargo check --features unstable
6753

6854
- name: Run lib tests and doc tests
69-
uses: actions-rs/cargo@v1
70-
with:
71-
command: test
55+
run: cargo test
7256

7357
- name: Run integration tests
74-
uses: actions-rs/cargo@v1
75-
with:
76-
command: test
77-
args: -p h2-tests
58+
run: cargo test -p h2-tests
7859

7960
- name: Run h2spec
8061
run: ./ci/h2spec.sh
@@ -99,16 +80,11 @@ jobs:
9980

10081
steps:
10182
- name: Checkout
102-
uses: actions/checkout@v1
83+
uses: actions/checkout@v3
10384

10485
- name: Install Rust (${{ matrix.rust }})
105-
uses: actions-rs/toolchain@v1
86+
uses: dtolnay/rust-toolchain@master
10687
with:
107-
profile: minimal
10888
toolchain: ${{ matrix.rust }}
109-
override: true
11089

111-
- name: Check
112-
uses: actions-rs/cargo@v1
113-
with:
114-
command: check
90+
- run: cargo check

0 commit comments

Comments
 (0)