-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 1.18 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
name: test
on:
push:
branches:
- master
- main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: "recursive"
# - uses: erlef/setup-beam@v1
# with:
# otp-version: "26.0.2"
# # Ensure you update the bin/download-compiler Gleam version to match this
# gleam-version: "1.5.1"
# rebar3-version: "3"
- uses: cachix/install-nix-action@v26
- uses: DeterminateSystems/magic-nix-cache-action@v4
- run: ./bin/download-compiler
- run: glistix deps download
shell: nix develop -L --command bash -e {0}
- run: glistix format --check src test
shell: nix develop --command bash -e {0}
# This will work even if compilation fails (as Lustre imports arent't valid on Nix)
# The main concern is generating files for deps and prelude
- name: Generate Nix files
run: glistix build --target nix | true
shell: nix develop --command bash -e {0}
- run: glistix test
shell: nix develop --command bash -e {0}
- run: glistix run
shell: nix develop --command bash -e {0}