Browse Source

Maintenance: Add CI check for yarn.lock consistency.

Martin Gruner 1 year ago
parent
commit
1717d3543e
2 changed files with 4 additions and 1 deletions
  1. 3 0
      .gitlab/ci/lint.yml
  2. 1 1
      yarn.lock

+ 3 - 0
.gitlab/ci/lint.yml

@@ -93,8 +93,11 @@
     - !reference [.cache, read_only_nodejs]
     - !reference [.cache, read_write_eslint]
   before_script:
+    - cp yarn.lock tmp/yarn.lock  # Save original state of yarn.lock
     - !reference [.scripts, yarn_install]
   script:
+    - echo "Checking if yarn.lock is up-to-date"
+    - "if ! diff yarn.lock tmp/yarn.lock; then echo 'Error: yarn.lock is not up-to-date'; exit 1; fi"
     - echo "ESLint check..."
     - yarn lint
     # Currently unused, skip to save time...

+ 1 - 1
yarn.lock

@@ -8357,7 +8357,7 @@ postcss-value-parser@^4.0.0, postcss-value-parser@^4.2.0:
   resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz#723c09920836ba6d3e5af019f92bc0971c02e514"
   integrity sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==
 
-postcss@^5.2.17, postcss@^8.1.10, postcss@^8.4.0, postcss@^8.4.21, postcss@^8.4.23, postcss@^8.4.25, postcss@^8.4.27:
+postcss@^5.2.17, postcss@^8.1.10, postcss@^8.4.0, postcss@^8.4.21, postcss@^8.4.23, postcss@^8.4.25, postcss@^8.4.26, postcss@^8.4.27:
   version "8.4.27"
   resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.27.tgz#234d7e4b72e34ba5a92c29636734349e0d9c3057"
   integrity sha512-gY/ACJtJPSmUFPDCHtX78+01fHa64FaU4zaaWfuh1MhGJISufJAH4cun6k/8fwsHYeK4UQmENQK+tRLCFJE8JQ==