Skip to content

Commit

Permalink
Rewrite CI workflow to match scripts/ci/ci.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
weekday-grandine-io committed Apr 3, 2024
1 parent 5ae9306 commit 6639c63
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,16 @@ jobs:
with:
submodules: true
lfs: true
# - name: Git lfs pull
# working-directory: consensus-spec-tests
# run: git lfs pull
- name: Install Rust
run: rustup toolchain install stable --profile minimal
# There should be no need to install Rustup or a Rust toolchain explicitly.
# The `ubuntu-22.04` image already includes Rustup:
# <https://github.com/actions/runner-images/blob/ubuntu22/20240401.4/images/ubuntu/Ubuntu2204-Readme.md#rust-tools>
# Running `rustc` or Cargo should automatically install the toolchain specified in `rust-toolchain.toml`.
- uses: Swatinem/rust-cache@v2
- name: Run formatter
- name: Check if code is formatted
run: cargo fmt --check
- name: Run clippy
run: bash scripts/ci/clippy.bash
- name: Run Clippy
run: scripts/ci/clippy.bash --deny warnings
- name: Run tests
run: cargo test --release
run: cargo test --release --no-fail-fast
- name: Check consensus-spec-tests coverage
run: scripts/ci/consensus-spec-tests-coverage.rb

0 comments on commit 6639c63

Please sign in to comment.