Move checks into a separate YAML file

This commit is contained in:
Luc Perkins 2023-06-22 11:58:29 -07:00
parent d8fbc93e4f
commit 8882afd4d5
No known key found for this signature in database
GPG key ID: 4F102D0C16E232F2
2 changed files with 20 additions and 14 deletions

View file

@ -5,20 +5,6 @@ on:
workflow_call: workflow_call:
jobs: jobs:
checks:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action-cache@main
- name: Check Rust formatting
run: nix develop --command cargo fmt --check
- name: Clippy
run: nix develop --command cargo clippy
build-artifacts-X64-macOS: build-artifacts-X64-macOS:
runs-on: macos-12 runs-on: macos-12
steps: steps:

20
.github/workflows/checks.yaml vendored Normal file
View file

@ -0,0 +1,20 @@
name: Rust checks
on:
pull_request:
push:
branches: [main]
jobs:
checks:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action-cache@main
- name: Check Rust formatting
run: nix develop --command cargo fmt --check
- name: Clippy
run: nix develop --command cargo clippy