From 7a2e60cf8f56f0880aafe43fa2889e50cf716bbc Mon Sep 17 00:00:00 2001 From: Dillon Kearns Date: Mon, 3 Nov 2025 12:00:24 -0800 Subject: [PATCH 1/3] Install elm-format. --- package-lock.json | 89 +++++++++++++++++++++++++++++++++++++++++++++++ package.json | 1 + 2 files changed, 90 insertions(+) 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" } From 7bf5cfabe83b4ce3036a99f32e44669cb3148f80 Mon Sep 17 00:00:00 2001 From: Dillon Kearns Date: Mon, 3 Nov 2025 12:00:36 -0800 Subject: [PATCH 2/3] Include counter repo deps in hash. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eb33e74..b0d72d7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ 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 From 5ad1934bf8dc1687e15ad3a32c0abb546b46fc6f Mon Sep 17 00:00:00 2001 From: Dillon Kearns Date: Mon, 3 Nov 2025 12:01:25 -0800 Subject: [PATCH 3/3] Run lamdera make to ensure lamdera dependencies are available before running test command. --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b0d72d7..1b9cc36 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,6 +38,8 @@ jobs: # 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