name: Verify
on:
push:
branches: ["main"]
pull_request: {}
jobs:
verify:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.2
- name: Setup Node.js
uses: actions/setup-node@v4.0.2
with:
# For `npm i --omit=dev --omit=optional` to succeed, node >= 20.19 OR node >= 22.9 + npm >= 11.5 are required.
# For `npm i` to succeed, node >= 22.13 is required.
node-version: "22.13.0"
- run: npm ci --no-audit
- run: cp config-vanilla.json config.json
- run: npm run verify
- run: npm run raw -- --test
- run: npm run lint:ci
- run: npm run knip
- run: npm run prettier
- run: npm run update-translations
- name: Fail if there are uncommitted changes
run: |
if [[ -n "$(git status --porcelain)" ]]; then
echo "Uncommitted changes detected:"
git status
git --no-pager diff
exit 1
fi
name: Verify
on:
push:
branches: ["main"]
pull_request: {}
jobs:
verify:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.2
- name: Setup Node.js
uses: actions/setup-node@v4.0.2
with:
# For `npm i --omit=dev --omit=optional` to succeed, node >= 20.19 OR node >= 22.9 + npm >= 11.5 are required.
# For `npm i` to succeed, node >= 22.13 is required.
node-version: "22.13.0"
- run: npm ci --no-audit
- run: cp config-vanilla.json config.json
- run: npm run verify
- run: npm run raw -- --test
- run: npm run lint:ci
- run: npm run knip
- run: npm run prettier
- run: npm run update-translations
- name: Fail if there are uncommitted changes
run: |
if [[ -n "$(git status --porcelain)" ]]; then
echo "Uncommitted changes detected:"
git status
git --no-pager diff
exit 1
fi