Skip to content

Bump qs from 6.15.0 to 6.15.2 (#431) #1375

Bump qs from 6.15.0 to 6.15.2 (#431)

Bump qs from 6.15.0 to 6.15.2 (#431) #1375

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
jobs:
test-node:
name: Run tests
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
checks: write
id-token: write
steps:
- uses: actions/checkout@v7
with:
# On PRs, check out the head ref directly (not the merge commit) so
# any regenerated files can be pushed back to the source branch.
ref: ${{ github.head_ref || github.ref }}
# Use a PAT (when configured) so the auto-commit push triggers a
# follow-up CI run. Pushes authenticated with the default
# GITHUB_TOKEN deliberately don't trigger workflows, which leaves
# PRs stuck without status checks on the regenerated commit. Falls
# back to GITHUB_TOKEN on forks where the secret is unavailable.
token: ${{ secrets.CI_AUTOCOMMIT_PAT || secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v6
with:
node-version: 22
- run: npm ci
- name: Sync ACT testcases and fixtures from upstream
run: npm run sync:testcases
- name: Regenerate ACT test files
run: node generate-act-tests.js
- name: Regenerate README
run: npm run build:readme
- run: npx playwright install --with-deps
- run: npm test
- name: Commit refreshed ACT data to PR branch
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
env:
BRANCH: ${{ github.head_ref }}
run: |
if [ -z "$(git status --porcelain)" ]; then
echo "No regenerated files to commit."
exit 0
fi
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add -A testcases.json README.md tests/act/fixtures tests/act/tests
git commit -m "Sync ACT testcases and regenerate tests / README"
git push origin "HEAD:${BRANCH}"