-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (32 loc) · 1.05 KB
/
check.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# This workflow runs whenever a PR is opened or updated, or a commit is pushed to master.
# It runs several checks:
# - fmt: checks that the code is formatted according to rustfmt
# - clippy: checks that the code does not contain any clippy warnings
name: Checks
permissions:
contents: read
on:
push:
branches: ['master']
pull_request:
# If new code is pushed to a PR branch, then cancel in progress workflows for that PR.
# This Ensures that we don't waste CI time, and returns results quicker.
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
checks:
name: nix flake check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v25
with:
nix_path: nixpkgs=channel:nixos-24.11
- uses: cachix/cachix-action@v14
with:
name: cs2kz
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: run checks
run: nix flake check .#
- uses: DeterminateSystems/flake-checker-action@main