Skip to content

Fix Playwright driver crash recovery #14

Fix Playwright driver crash recovery

Fix Playwright driver crash recovery #14

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22"
- uses: actions/setup-node@v4
with:
node-version: "22"
- name: Go test
run: go test -count=1 -timeout 2m $(go list ./... | grep -v '/internal/spike$')
- name: Go vet
run: go vet ./...
- name: Shell syntax
run: bash -n scripts/release-preflight.sh scripts/release-push.sh
- name: UI i18n syntax
run: |
node --check extension/sidebar/app.js
node -e "JSON.parse(require('fs').readFileSync('extension/manifest.json','utf8')); JSON.parse(require('fs').readFileSync('extension/_locales/en/messages.json','utf8')); JSON.parse(require('fs').readFileSync('extension/_locales/zh_TW/messages.json','utf8')); console.log('extension json ok')"
node -e "const fs=require('fs'); const html=fs.readFileSync('internal/api/dashboard.html','utf8'); const m=html.match(/<script>([\s\S]*)<\/script>/); if(!m) throw new Error('script not found'); new Function(m[1]); console.log('dashboard js ok')"
node scripts/check-i18n.js
- name: Workflow YAML
run: ruby -e "require 'yaml'; Dir['.github/workflows/*.yml'].each { |f| YAML.load_file(f); puts \"#{f} ok\" }"
- name: Docker Compose config
run: docker compose -f docker/docker-compose.yml config
- name: Fingerprint generator smoke
run: npm install --silent && node scripts/generate-fingerprints.js --browser firefox --os macos --count 1 --output /tmp/browseforge-fingerprint-smoke