git use apk instead of apt-get to install jq

This commit is contained in:
Julie Lenaerts 2024-12-05 16:25:40 +01:00
parent 3ca126804b
commit 54e10cacd3

View File

@ -112,7 +112,7 @@ lint:
- export PATH="./node_modules/.bin:$PATH"
script:
- yarn install --ignore-optional
- apt-get update && apt-get install -y jq
- apk add --no-cache jq
- eslint "**/*.{js,vue}" --format json | jq '[.[] | select(.messages | length > 0)]' > eslint-current.json
- new_errors=$(diff <(jq -S . eslint-baseline.json) <(jq -S . eslint-current.json))
- |