diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eb33e74..1b9cc36 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,11 +33,13 @@ jobs: uses: actions/cache@v4 with: path: ~/.elm - key: elm-${{ hashFiles('elm.json', 'review/elm.json') }} + key: elm-${{ hashFiles('elm.json', 'review/elm.json', 'example/counter/elm.json') }} # Install npm packages, unless we restored them from cache. # Since `npm ci` removes the node_modules folder before running it’s # important to skip this step if cache was restored. + - name: Setup lamdera dependencies + run: (cd example/counter && npx lamdera make src/*.elm) - name: npm ci if: steps.cache-node_modules.outputs.cache-hit != 'true' run: npm ci diff --git a/package-lock.json b/package-lock.json index 2e54f51..953f389 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,10 +6,81 @@ "": { "name": "program-test", "devDependencies": { + "elm-format": "^0.8.8", "elm-test": "^0.19.1-revision16", "lamdera": "^0.19.1-1.3.2" } }, + "node_modules/@avh4/elm-format-darwin-arm64": { + "version": "0.8.8-1", + "resolved": "https://registry.npmjs.org/@avh4/elm-format-darwin-arm64/-/elm-format-darwin-arm64-0.8.8-1.tgz", + "integrity": "sha512-VDu3CRajhB/Sax+CEU4PhIzErBZv8vVxbk9Sk8seUHa1ngfICa3Ejoq3PhnoOFKYF1v1sSxNOC2RnUzvd/9bUw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "BSD-3-Clause", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@avh4/elm-format-darwin-x64": { + "version": "0.8.8-1", + "resolved": "https://registry.npmjs.org/@avh4/elm-format-darwin-x64/-/elm-format-darwin-x64-0.8.8-1.tgz", + "integrity": "sha512-9NAzi3HUBSHEIx3Nje+a6wFcv6RDKv2PO0OUNcV/XlS4Sou3r89xsYAVAXS8mi4+CKTdscyfSSkgGd8qiCCxAw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "BSD-3-Clause", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@avh4/elm-format-linux-arm64": { + "version": "0.8.8-1", + "resolved": "https://registry.npmjs.org/@avh4/elm-format-linux-arm64/-/elm-format-linux-arm64-0.8.8-1.tgz", + "integrity": "sha512-VNuXYphgxtnk7Gw+VBgWBeA9k8wKSo9r/O2F7udgurokYLO8S+RGhLHgD9mb6Yecv/veWz4v9n/O0IggH/BOCQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "BSD-3-Clause", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@avh4/elm-format-linux-x64": { + "version": "0.8.8-1", + "resolved": "https://registry.npmjs.org/@avh4/elm-format-linux-x64/-/elm-format-linux-x64-0.8.8-1.tgz", + "integrity": "sha512-IvtmUTDw/V5mBeglLgtQMzWZPc0QvmqUmoJ+vipxYii3DJ/1KV2drtpvlLuFdBlFrehUivtrh4HhOTsdGXxyXQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "BSD-3-Clause", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@avh4/elm-format-win32-x64": { + "version": "0.8.8-1", + "resolved": "https://registry.npmjs.org/@avh4/elm-format-win32-x64/-/elm-format-win32-x64-0.8.8-1.tgz", + "integrity": "sha512-qGYZM2oJFSVQ80Tayk1v15ba7PWCU3B89EkA3Fy4YQasvtA+UrYYR5Bv7MRF4kn6Zp7oSDk4FhknURFsZWZ7kg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "BSD-3-Clause", + "optional": true, + "os": [ + "win32" + ] + }, "node_modules/@lamdera/compiler-darwin-arm64": { "version": "0.19.1-1.3.2", "resolved": "https://registry.npmjs.org/@lamdera/compiler-darwin-arm64/-/compiler-darwin-arm64-0.19.1-1.3.2.tgz", @@ -223,6 +294,24 @@ "node": ">= 8" } }, + "node_modules/elm-format": { + "version": "0.8.8", + "resolved": "https://registry.npmjs.org/elm-format/-/elm-format-0.8.8.tgz", + "integrity": "sha512-OJYUtVnepuy8UZdnL5OCjSxUY5+dIGP2NdWTB6icxVVOOH0b8MpJIijTPsGW+ztnv9yzSoTK0dhCuVDh+AGhNQ==", + "dev": true, + "hasInstallScript": true, + "license": "BSD-3-Clause", + "bin": { + "elm-format": "bin/elm-format" + }, + "optionalDependencies": { + "@avh4/elm-format-darwin-arm64": "0.8.8-1", + "@avh4/elm-format-darwin-x64": "0.8.8-1", + "@avh4/elm-format-linux-arm64": "0.8.8-1", + "@avh4/elm-format-linux-x64": "0.8.8-1", + "@avh4/elm-format-win32-x64": "0.8.8-1" + } + }, "node_modules/elm-solve-deps-wasm": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/elm-solve-deps-wasm/-/elm-solve-deps-wasm-2.0.0.tgz", diff --git a/package.json b/package.json index 1fa2f8a..53e8552 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "test": "cd example/counter && elm-test --compiler `which lamdera`" }, "devDependencies": { + "elm-format": "^0.8.8", "elm-test": "^0.19.1-revision16", "lamdera": "^0.19.1-1.3.2" }