Skip to content

Commit

Permalink
chore: replace unmaintained actions-rs/* actions in CI workflows (#436)
Browse files Browse the repository at this point in the history
  • Loading branch information
striezel authored and hawkw committed Sep 29, 2023
1 parent 4a88b28 commit cd1a277
Showing 1 changed file with 9 additions and 32 deletions.
41 changes: 9 additions & 32 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,12 @@ jobs:
uses: actions/checkout@v3

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v1
- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
run: cargo check

test_os:
name: Tests on ${{ matrix.os }} with Rust ${{ matrix.rust }}
Expand All @@ -67,11 +63,9 @@ jobs:
uses: actions/checkout@v3

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

- name: Install Protoc
Expand All @@ -80,22 +74,13 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Run cargo test (API)
uses: actions-rs/cargo@v1
with:
command: test
args: -p console-api
run: cargo test -p console-api

- name: Run cargo test (subscriber)
uses: actions-rs/cargo@v1
with:
command: test
args: -p console-subscriber
run: cargo test -p console-subscriber

- name: Run cargo test (console)
uses: actions-rs/cargo@v1
with:
command: test
args: -p tokio-console --locked
run: cargo test -p tokio-console --locked

lints:
name: Lints
Expand All @@ -105,22 +90,14 @@ jobs:
uses: actions/checkout@v3

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v1

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

- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
run: cargo clippy -- -D warnings

0 comments on commit cd1a277

Please sign in to comment.