Skip to content

best way to save what you love

build: add test to check if lockfile needs an update

jj7f333ec681fe
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 1a02c125..193ddd01 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -6,6 +6,19 @@ on:
branches: [ current ]
jobs:
+ check-lockfile:
+ name: check lockfile correctness
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+ - name: Check that lockfile does not need an update
+ run: |
+ cp package-lock.json before.json
+ npm ci
+ npm i --package-lock-only
+ diff before.json package-lock.json
+
test-web:
name: web sanity check
runs-on: ubuntu-latest
@@ -22,4 +35,4 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run test script
- run: .github/test.sh api
\ No newline at end of file
+ run: .github/test.sh api