-
-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (39 loc) · 1.02 KB
/
ci.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
38
39
40
41
42
43
44
45
46
# SPDX-FileCopyrightText: 2024 Sefa Eyeoglu <[email protected]>
#
# SPDX-License-Identifier: MIT
name: CI
on: [push, pull_request]
jobs:
format:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Check formatting
run: |
nix fmt -- --ci
check-readme:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Check README contents
run: |
nix run .#update-readme
git diff
if git diff-index --quiet HEAD -- ; then
echo "All good!"
else
echo "The README is out of date. Please run 'nix run .#update-readme' to update the README." >&2
exit 1
fi
test:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v5