-
Notifications
You must be signed in to change notification settings - Fork 80
53 lines (44 loc) · 1.41 KB
/
main.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
52
53
name: tests
on:
push:
branches: [master]
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SPACES_KEY: ${{ secrets.SPACES_KEY }}
SPACES_SECRET: ${{ secrets.SPACES_SECRET }}
steps:
# Setup
- name: Check out source repository
uses: actions/checkout@v2
- name: Cache NPM dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Cache PureScript dependencies
uses: actions/cache@v2
with:
key: ${{ runner.os }}-spago-${{ hashFiles('**/spago.yaml') }}
path: |
.spago
output
- name: Install Nix
uses: cachix/install-nix-action@v16
with:
extra_nix_config: |
access-tokens = github.com=${{ env.GITHUB_TOKEN }}
# Checks for the Registry Draft
- name: "Check that all Dhall compiles, and fixtures correctly conform to a Manifest"
run: nix develop --command 'registry-verify-dhall'
- name: "Build project"
run: nix develop --command 'registry-build'
- name: "Run tests"
run: nix develop --command 'registry-test'
- name: "Verify CI code formats"
run: nix develop --command 'registry-check-format'