-
Notifications
You must be signed in to change notification settings - Fork 7
41 lines (33 loc) · 1.06 KB
/
ci-validate.yml
File metadata and controls
41 lines (33 loc) · 1.06 KB
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
name: Verify dev tooling and validate submissions
on:
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
check:
name: Verify dev tooling and validate submissions
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v27
with:
extra_nix_config: |
accept-flake-config = true
- name: Use Cachix (pull/push if token provided)
uses: cachix/cachix-action@v14
with:
name: uplc-cape
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- name: Warm up Nix dev shell
run: |
# Ensure the dev shell is instantiated and dependencies are downloaded
nix develop --accept-flake-config --command cape --help > /dev/null
- name: Verify all submissions
run: |
nix develop --accept-flake-config --command cape submission verify --all
- name: Run test suite
run: |
nix develop --accept-flake-config --command cape test