Skip to content

Commit

Permalink
Merge pull request #7 from negezor/update-ci
Browse files Browse the repository at this point in the history
Update GitHub Actions CI
  • Loading branch information
daniel7grant authored Apr 1, 2024
2 parents 3ab49ad + ba058ac commit bf0c11b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 27 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,9 @@ 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
6 changes: 2 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@ 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
21 changes: 6 additions & 15 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,12 @@ 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 bf0c11b

Please sign in to comment.