Skip to content

Commit 8af5196

Browse files
committed
ci(gh-actions): Add workflow to test the mcl command
1 parent 2d18633 commit 8af5196

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/mcl.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: 'MCL'
2+
3+
on:
4+
# Allow this workflow to be triggered manually:
5+
workflow_dispatch:
6+
7+
# Allow this workflow to be triggered in merge
8+
merge_group:
9+
10+
push:
11+
branches:
12+
- main
13+
pull_request:
14+
branches:
15+
- main
16+
17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.repository }}-${{ github.event.pull_request.number || github.ref }}
19+
cancel-in-progress: true
20+
21+
jobs:
22+
test-mcl:
23+
runs-on: self-hosted
24+
steps:
25+
- name: Install Nix
26+
uses: metacraft-labs/nixos-modules/.github/install-nix@main
27+
with:
28+
cachix-cache: ${{ vars.CACHIX_CACHE }}
29+
cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }}
30+
trusted-public-keys: ${{ vars.TRUSTED_PUBLIC_KEYS }}
31+
substituters: ${{ vars.SUBSTITUTERS }}
32+
33+
- uses: actions/checkout@v4
34+
35+
- name: Build and test the `mcl` command
36+
run: nix develop -c sh -c "dub test --root packages/mcl -- -e 'fetchJson|(coda\.)|nix.run|nix.build'"

0 commit comments

Comments
 (0)