From 9ed2e2c7e40cec4b67f1dd22d2c0521bf2a159f6 Mon Sep 17 00:00:00 2001 From: Dillon Kearns Date: Fri, 25 Mar 2022 10:35:57 -0700 Subject: [PATCH] Use Lamdera for running tests in CI. --- .github/workflows/ci.yml | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dc77595e..642c8cb6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/package.json b/package.json index dd706f72..cac03f7f 100644 --- a/package.json +++ b/package.json @@ -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"