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

Commit

Permalink
chore(ci): Leverage reusable workflows (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
phated authored Feb 8, 2023
1 parent 99d10c2 commit c0ffefe
Showing 1 changed file with 12 additions and 20 deletions.
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)

0 comments on commit c0ffefe

Please sign in to comment.