Skip to content

Commit

Permalink
chore: update github actions ci
Browse files Browse the repository at this point in the history
  • Loading branch information
negezor committed Mar 31, 2024
1 parent 3ab49ad commit aa60699
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 24 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,10 @@ jobs:
name: Test examples with ${{ matrix.version }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: ${{ matrix.version }}
override: true
- uses: actions-rs/cargo@v1
with:
command: test
args: --examples
- run: cargo test --examples
5 changes: 2 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@ jobs:
name: Publish to crates.io
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true
- name: Hack publish-crates to not fail on paths
run: |
sed 's/, path = ".*"//' -i Cargo.toml
Expand Down
20 changes: 6 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,13 @@ jobs:
name: Check and test on ${{ matrix.os }} with ${{ matrix.version }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: ${{ matrix.version }}
override: true
- uses: actions-rs/cargo@v1
with:
command: check
- run: rustup component add clippy
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
- uses: actions-rs/cargo@v1
with:
command: test
components: clippy
- run: cargo check
- run: cargo clippy -- -D warnings
- run: cargo test

0 comments on commit aa60699

Please sign in to comment.