Skip to content

Commit cdc7303

Browse files
committed
use mpizenberg/elm-tooling-action
1 parent 7d56407 commit cdc7303

File tree

1 file changed

+6
-30
lines changed

1 file changed

+6
-30
lines changed

.github/workflows/ci.yml

+6-30
Original file line numberDiff line numberDiff line change
@@ -8,42 +8,18 @@ on:
88

99
jobs:
1010
main:
11-
runs-on: ${{ matrix.os }}
12-
13-
strategy:
14-
matrix:
15-
os: [ubuntu-latest]
16-
node-version: [14.x]
17-
18-
env:
19-
ELM_HOME: '${{ github.workspace }}/elm-stuff/elm-home'
20-
11+
runs-on: ubuntu-latest
2112
steps:
2213
- uses: actions/checkout@v2
2314

2415
- uses: actions/setup-node@v1
2516
with:
2617
node-version: "${{ matrix.node-version }}"
2718

28-
- name: Cache node_modules
29-
id: cache-node_modules
30-
uses: actions/cache@v2
19+
- name: Install elm, elm-format and cache the ELM_HOME directory
20+
uses: mpizenberg/elm-tooling-action@v1.1
3121
with:
32-
path: node_modules
33-
key: node_modules-${{ matrix.os }}-${{ matrix.node-version }}-${{ hashFiles('package-lock.json') }}
34-
35-
- name: Cache ELM_HOME
36-
uses: actions/cache@v2
37-
with:
38-
path: '${{ env.ELM_HOME }}'
39-
key: elm-${{ matrix.os }}-${{ hashFiles('elm-tooling.json', 'elm/**/elm.json', 'example-*/**/elm.json', 'tests/**/elm.json') }}
40-
41-
- name: Install elm-tooling CLI
42-
if: steps.cache-node_modules.outputs.cache-hit != 'true'
43-
run: npm install --no-save elm-tooling
44-
45-
- name: elm-tooling install
46-
run: npx --no-install elm-tooling install
22+
cache-key: elm-home-${{ hashFiles('elm-tooling.json', 'elm.json') }}
4723

48-
- name: test
49-
run: npx -c ./tests/run-tests.sh
24+
- name: Run tests
25+
run: ./tests/run-tests.sh

0 commit comments

Comments
 (0)