-
-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (36 loc) · 1.08 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
- pull_request
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['16', '18', '20']
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- uses: JorelAli/setup-elm@v2
- name: Cache nodejs
uses: actions/cache@v2
with:
path: node_modules
key: nodejs-${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
- name: Cache elm
uses: actions/cache@v2
with:
path: ~/.elm
key: elm-${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('test-asset/elm.json') }}
- name: Cache purescript
uses: actions/cache@v2
with:
path: .spago
key: purescript-${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('spago.dhall') }}-${{ hashFiles('packages.dhall') }}
- run: elm make
working-directory: test-asset
continue-on-error: true
- run: make test-purs
- run: make test-ts