name: CI on: pull_request: branches: [development] push: branches: [development, main] jobs: lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: "20" # No linter or test suite is configured for this plain-JS browser extension # (no package.json/bundler). This validates manifest.json and runs a syntax # check on every JS file, matching the local Stop hook. - name: Validate manifest.json run: node -e "JSON.parse(require('fs').readFileSync('manifest.json', 'utf8'))" - name: Syntax check (node --check) run: | find . -name "*.js" -not -path "./.git/*" -print0 | xargs -0 -n1 node --check