Skip to content

Commit

Permalink
github actions: update
Browse files Browse the repository at this point in the history
  • Loading branch information
codyps committed May 2, 2024
1 parent 5059b6d commit 9fc44f2
Showing 1 changed file with 11 additions and 36 deletions.
47 changes: 11 additions & 36 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,55 +8,30 @@ name: ci

jobs:
test:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
- beta
- nightly
- 1.47.0

steps:
- uses: actions/checkout@v2

- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true

- name: Cache Rust dependencies
uses: Swatinem/rust-cache@v1

- name: Run all tests
uses: actions-rs/cargo@v1
with:
command: test
args: --all
- uses: Swatinem/rust-cache@v4
- run: cargo test --all

check:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@beta
with:
profile: minimal
toolchain: beta
override: true
components: rustfmt, clippy

- name: Cache Rust dependencies
uses: Swatinem/rust-cache@v1

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

# - uses: actions-rs/cargo@v1
# with:
# command: clippy
# args: -- -D warnings
- uses: Swatinem/rust-cache@v4
- run: cargo fmt --all -- --check
#- run: cargo clippy --all --all-targets -- -D warnings

0 comments on commit 9fc44f2

Please sign in to comment.