-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (36 loc) · 947 Bytes
/
ci.yml
File metadata and controls
47 lines (36 loc) · 947 Bytes
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
47
name: CI
on:
push:
branches:
- main
pull_request:
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v27
with:
extra_nix_config: |
experimental-features = nix-command flakes
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.work
- name: Install just
uses: taiki-e/install-action@just
- name: Nix lint
run: just lint-nix
- name: Pre-commit hooks
run: just precommit-run
- name: Guardrails
run: just ci-check
- name: Nix build package
run: nix build 'path:.#sotto'
- name: Nix run --help smoke
run: nix run 'path:.#sotto' -- --help