Skip to content

Commit

Permalink
Upgrade GitHub action (#34)
Browse files Browse the repository at this point in the history
* upgrade actions/checkout to v3

* migrate actions-rs/toolchain to dtolnay/rust-toolchain
  • Loading branch information
DCjanus committed Aug 19, 2023
1 parent 11a7708 commit 654894a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 22 deletions.
27 changes: 7 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,35 +11,22 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
profile: minimal
override: true
components: clippy, rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
- run: cargo fmt --all -- --check
- run: cargo clippy -- -D warnings

test:
runs-on: ubuntu-latest
strategy:
matrix:
toolchain: [ stable, beta, nightly ]
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
profile: minimal
override: true
- uses: actions-rs/cargo@v1
with:
command: test
args: --workspace
- run: cargo test --workspace
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
override: true
- uses: katyo/publish-crates@v2
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 comments on commit 654894a

Please sign in to comment.