Skip to content

Commit bffdfda

Browse files
committed
Add CI
1 parent b422a6e commit bffdfda

2 files changed

Lines changed: 30 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: "Setup Nix"
2+
description: "Install and configure Nix for Github Actions"
3+
runs:
4+
using: "composite"
5+
steps:
6+
- uses: nixbuild/nix-quick-install-action@v34
7+
- uses: nix-community/cache-nix-action@v7
8+
with:
9+
# restore and save a cache using this key
10+
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock') }}
11+
# if there's no cache hit, restore a cache by this prefix
12+
restore-prefixes-first-match: nix-${{ runner.os }}-

.github/workflows/ci.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
workflow_dispatch:
9+
10+
jobs:
11+
ci:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v6
15+
- uses: ./.github/actions/setup-nix
16+
17+
- name: Run lint
18+
run: nix develop --command bash -c "make check"

0 commit comments

Comments
 (0)