mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-23 11:55:41 +03:00
Use Lamdera for running tests in CI.
This commit is contained in:
parent
91a084266f
commit
9ed2e2c7e4
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -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 it’s
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user