-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (23 loc) · 705 Bytes
/
ci.yml
File metadata and controls
27 lines (23 loc) · 705 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
name: CI tests
run-name: ${{ github.actor }} CI tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: [ ubuntu-latest ]
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: "Lint"
run: nix run .\#check-formatting
- name: "Test"
run: |
nix develop --command cabal --config-file /dev/null --active-repositories=none test test:doctests
nix develop --command cabal --config-file /dev/null --active-repositories=none test test:tests