🌐 AI搜索 & 代理 主页
Skip to content

Build: Add periodic tests on beta versions of browsers #1566

Build: Add periodic tests on beta versions of browsers

Build: Add periodic tests on beta versions of browsers #1566

Workflow file for this run

name: Node
on:
pull_request:
push:
branches-ignore: "dependabot/**"
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
build-and-test:
runs-on: ubuntu-latest
name: ${{ matrix.NPM_SCRIPT }} - ${{ matrix.NAME }} (${{ matrix.NODE_VERSION }})
strategy:
fail-fast: false
matrix:
NAME: ["Node"]
NODE_VERSION: [20.x, 22.x, 24.x]
NPM_SCRIPT: ["test:browserless"]
include:
- NAME: "Node"
NODE_VERSION: "24.x"
NPM_SCRIPT: "lint"
steps:
- name: Checkout
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
- name: Use Node.js ${{ matrix.NODE_VERSION }}
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version: ${{ matrix.NODE_VERSION }}
cache: npm
cache-dependency-path: '**/package-lock.json'
- name: Install dependencies
run: npm ci
- name: Build all for linting
run: npm run build:all
if: contains(matrix.NPM_SCRIPT, 'lint')
- name: Run tests
run: npm run ${{ matrix.NPM_SCRIPT }}