Use Lamdera for running tests in CI.

This commit is contained in:
Dillon Kearns 2022-03-25 10:35:57 -07:00
parent 91a084266f
commit 9ed2e2c7e4
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ jobs:
uses: actions/cache@v2
with:
path: ~/.elm
key: elm-${{ hashFiles('elm.json', 'elm-tooling.json', 'generator/elm.json', 'review/elm.json', 'examples/routing/elm.json', 'examples/escaping/elm.json') }}
key: elm-${{ hashFiles('elm.json', 'elm-tooling.json', 'generator/elm.json', 'review/elm.json', 'examples/routing/elm.json', 'examples/escaping/elm.json', 'examples/base-path/elm.json') }}
# Install npm packages, unless we restored them from cache.
# Since `npm ci` removes the node_modules folder before running its

View File

@ -7,7 +7,7 @@
"main": "index.js",
"scripts": {
"start": "cd examples/end-to-end && npm i && npx elm-pages dev",
"test": "set -x; (cd examples/routing && npm i && npm run build && elm-test-rs) && npm run test:snapshot && npx elmi-to-json --version && elm-verify-examples --run-tests && elm-test && (cd generator && mocha)",
"test": "set -x; (cd examples/routing && npm i && npm run build && elm-test-rs --compiler=lamdera) && npm run test:snapshot && npx elmi-to-json --version && elm-verify-examples --run-tests --elm-test-args '--compiler=lamdera' && elm-test-rs --compiler=lamdera && (cd generator && mocha)",
"test:snapshot": "(cd examples/escaping && npm install && npm test) && (cd examples/base-path && npm install && npm test)",
"cypress": "npm start & cypress run",
"review": "elm-review"