Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

chore(ci): Leverage reusable workflows #81

Merged
merged 1 commit into from
Feb 8, 2023
Merged
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
32 changes: 12 additions & 20 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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)