name: CI on: push: branches: - master tags: - '**' pull_request: workflow_dispatch: workflow_call: # release.yml runs the tests before publishing concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true permissions: contents: read jobs: test: name: Lint and test (Node 26) runs-on: ubuntu-latest timeout-minutes: 15 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false # .nvmrc is the one place the Node version is set (26.12.1: the first 26.x # with the October 2026 security fixes), shared with local development - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: node-version-file: .nvmrc cache: npm # --legacy-peer-deps: the Browserify and webpack plugins still pin old peer ranges - run: npm ci --legacy-peer-deps - run: npm test - name: Upload coverage to Coveralls if: success() uses: coverallsapp/github-action@8d6379e14d29928660c4ba802d8e85393440b329 # v2.3.8 with: github-token: ${{ secrets.GITHUB_TOKEN }} path-to-lcov: coverage/lcov.info continue-on-error: true