From 7f333ec681fed43b0f988246d89b88649c552d3b Mon Sep 17 00:00:00 2001 From: jj Date: Tue, 28 May 2024 09:00:58 +0200 Subject: [PATCH] build: add test to check if lockfile needs an update --- .github/workflows/test.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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