Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweak CI scripts to fix warnings #1178

Merged
merged 2 commits into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 2 additions & 13 deletions .github/workflows/hakari.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# This workflow file serves as an example for cargo-hakari CI integration.

on:
push:
branches:
Expand All @@ -18,20 +16,11 @@ jobs:
RUSTFLAGS: -D warnings
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install cargo-hakari
uses: taiki-e/install-action@v2
with:
tool: cargo-hakari
- name: Check workspace-hack Cargo.toml is up-to-date
uses: actions-rs/cargo@v1
with:
command: hakari
args: generate --diff
run: cargo hakari generate --diff
- name: Check all crates depend on workspace-hack
uses: actions-rs/cargo@v1
with:
command: hakari
args: manage-deps --dry-run
run: cargo hakari manage-deps --dry-run
8 changes: 1 addition & 7 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: dtolnay/rust-toolchain@1.66
- name: Test build documentation
run: cargo doc
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: dtolnay/rust-toolchain@1.66
- name: Build
run: cargo build --verbose
- name: Install latest nextest release
uses: taiki-e/install-action@nextest
- name: Test nextest all
uses: actions-rs/cargo@v1
with:
command: nextest
args: run --verbose
run: cargo nextest run --verbose
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: dtolnay/rust-toolchain@1.66
- name: Test Libraries
run: cargo clippy --all-targets