Add separate check.yaml and use main branch of cache action

This commit is contained in:
Luc Perkins 2023-06-22 11:37:46 -07:00
parent 15c8020484
commit 3fafc77f09
No known key found for this signature in database
GPG key ID: 4F102D0C16E232F2
2 changed files with 18 additions and 10 deletions

View file

@ -5,20 +5,12 @@ on:
workflow_call: workflow_call:
jobs: jobs:
lints:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/flake-checker-action@v4
with:
fail-mode: true
build-artifacts-X64-macOS: build-artifacts-X64-macOS:
runs-on: macos-12 runs-on: macos-12
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action-cache@checker - uses: DeterminateSystems/nix-installer-action-cache@main
- name: Build package - name: Build package
run: "nix build .# -L" run: "nix build .# -L"
@ -36,7 +28,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action-cache@checker - uses: DeterminateSystems/nix-installer-action-cache@main
- name: Build package - name: Build package
run: "nix build .# -L" run: "nix build .# -L"

16
.github/workflows/check.yaml vendored Normal file
View file

@ -0,0 +1,16 @@
name: Run checks
on:
pull_request:
push:
branches: [main]
jobs:
checks:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Check health of flake.lock
uses: DeterminateSystems/flake-checker-action@v4
with:
fail-mode: true