-
-
Notifications
You must be signed in to change notification settings - Fork 110
42 lines (32 loc) · 1.05 KB
/
build.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
name: elm / pr
on:
pull_request:
push:
branches: [ main ]
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
steps:
- name: Checkout PR
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install elm + tools and cache the ELM_HOME directory
uses: mpizenberg/[email protected]
with:
cache-key: elm-${{ matrix.node-version }}-${{ hashFiles('elm-tooling.json', 'template/elm.json') }}
cache-restore-key: elm-${{ matrix.node-version }}
- name: Check that everything is alright
run: bin/build.sh
elm-test-runner:
runs-on: ubuntu-latest
steps:
- name: Checkout exercism/elm
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
- name: Run tests for all exercises
run: bin/run-all-exercises-in-docker.sh