Merge pull request #249 from myii/ci/use-node-16-for-test-conversion-pre-commit

ci(gitlab-ci): use Node `16.x` for `pre-commit` in test conversion job
This commit is contained in:
Imran Iqbal 2022-04-25 19:17:08 +01:00 committed by GitHub
commit bdf294edf5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -137,8 +137,12 @@ rubocop:
cache: *cache_bundler
before_script:
- 'export CONVERTED=test-the-use_this_template-button'
- 'git clone . tmp/"${CONVERTED}"-formula'
- 'cd tmp/"${CONVERTED}"-formula'
- 'git clone . /tmp/"${CONVERTED}"-formula'
- 'cd /tmp/"${CONVERTED}"-formula'
# Limit the version of `node` used by `pre-commit`, to avoid the following error:
# .../bin/node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found
- 'echo "default_language_version:" >> .pre-commit-config.yaml'
- 'echo " node: 16.14.2" >> .pre-commit-config.yaml'
# Install `pre-commit` hooks
- 'bin/install-hooks'
# Run the conversion script with debug output