-
Notifications
You must be signed in to change notification settings - Fork 3
51 lines (39 loc) · 1.13 KB
/
test.yml
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
48
49
50
51
name: Test
on:
workflow_dispatch:
pull_request:
branches: [ main ]
paths-ignore:
- 'README.md'
- 'docs/*'
push:
branches: [ main ]
paths-ignore:
- 'README.md'
- 'docs/*'
jobs:
acceptance:
name: Acceptance Testing
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out the repository
uses: actions/checkout@v4
- name: Install nix
uses: DeterminateSystems/nix-installer-action@main
- name: Setup nix caching
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Run linters
uses: golangci/[email protected]
with:
version: latest
- name: Generate user documentation
run: nix develop . --command just generate
- name: Confirm no stale user documentation
run: |
git diff --compact-summary --exit-code || \
(echo "*** Unexpected differences after code generation. Run 'just generate' and commit."; exit 1)
- name: Create container
run: nix develop . --command just container
- name: Run test suite
run: nix develop . --command just acceptance-test