forked from purescript/purescript-effect
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (23 loc) · 862 Bytes
/
Copy pathci.yml
File metadata and controls
30 lines (23 loc) · 862 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
28
29
30
name: CI
on:
push:
branches: [master]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
with:
extra_nix_config: |
extra-substituters = https://cache.iog.io https://purescript-lua.cachix.org
extra-trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= purescript-lua.cachix.org-1:yLs4ei2HtnuPtzLekOrW3xdfm95+Etw15gwgyIGTayA=
- name: Build
run: nix develop -c ./scripts/build
- name: Test
run: if [ -f scripts/test ]; then nix develop -c bash ./scripts/test; fi
- name: Luacheck
run: nix develop -c luacheck --quiet --std lua51 --no-unused-args --max-line-length 130 src/
- name: Format check
run: nix fmt && git diff --exit-code