Skip to content

Commit

Permalink
chore: Replace unmaintained/outdated GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nickelc authored and seanmonstar committed Apr 12, 2023
1 parent 45b9bcc commit d3d50ef
Showing 1 changed file with 12 additions and 36 deletions.
48 changes: 12 additions & 36 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v3

- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt

- name: cargo fmt --check
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- run: cargo fmt --all --check

test:
name: Test
Expand All @@ -43,38 +36,26 @@ jobs:
- stable
steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v3

- name: Install Rust (${{ matrix.rust }})
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true

- name: Install libssl-dev
run: sudo apt-get update && sudo apt-get install libssl-dev
- name: Build without unstable flag
uses: actions-rs/cargo@v1
with:
command: build
run: cargo build

- name: Check with unstable flag
uses: actions-rs/cargo@v1
with:
command: check
args: --features unstable
run: cargo check --features unstable

- name: Run lib tests and doc tests
uses: actions-rs/cargo@v1
with:
command: test
run: cargo test

- name: Run integration tests
uses: actions-rs/cargo@v1
with:
command: test
args: -p h2-tests
run: cargo test -p h2-tests

- name: Run h2spec
run: ./ci/h2spec.sh
Expand All @@ -99,16 +80,11 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v3

- name: Install Rust (${{ matrix.rust }})
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true

- name: Check
uses: actions-rs/cargo@v1
with:
command: check
- run: cargo check

0 comments on commit d3d50ef

Please sign in to comment.