forked from hanshoglund/elm-interval
-
Notifications
You must be signed in to change notification settings - Fork 3
32 lines (32 loc) · 907 Bytes
/
make.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
on: push
jobs:
make:
runs-on: ubuntu-20.04
strategy:
matrix:
node: [ '20', '18', '16' ]
name: Node ${{ matrix.node }} sample
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
name: cache elm
with:
path: ~/.elm
key: ${{ runner.os }}-elm-${{ hashFiles('**/elm.json') }}
restore-keys: |
${{ runner.os }}-elm-
- uses: actions/cache@v4
name: cache npm
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: npm test
- run: npm run check-format
name: Check everything's formatted with elm-format