diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 935d6e471..590c9814a 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,28 +1,20 @@ name: Rust -on: - push: - branches: [ "master" ] - pull_request: - branches: [ "master" ] - -env: - CARGO_TERM_COLOR: always +on: [push, pull_request] jobs: - build: + check_n_test: + name: cargo check & test + uses: noir-lang/.github/.github/workflows/rust-test.yml@main - runs-on: ubuntu-latest + clippy: + name: cargo clippy + uses: noir-lang/.github/.github/workflows/rust-clippy.yml@main + + format: + name: cargo fmt + uses: noir-lang/.github/.github/workflows/rust-format.yml@main - steps: - - uses: actions/checkout@v3 - - name: Build - run: cargo build --verbose - - name: Clippy - run: cargo clippy --verbose - - name: Run tests - run: cargo test --verbose - spellcheck: runs-on: ubuntu-latest steps: @@ -31,5 +23,5 @@ jobs: with: files: | **/*.{md,rs} - incremental_files_only : true # Run this action on files which have changed in PR + incremental_files_only: true # Run this action on files which have changed in PR strict: false # Do not fail, if a spelling mistake is found (This can be annoying for contributors)