/
githubmirror
/
jest
Обзор
Документация
Войти
/
githubmirror
/
jest
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
.github/workflows/test.yml
74 строки
2 KB
Simen Bekkhus
ci: run the test matrix on Node 26 (#16321)
10 авг 2026, 23:59
Не верифицирован
10 авг 2026, 23:59
0246253
Код
Авторство
О чём код?
name: Test on: workflow_call: inputs: os: required: true type: string shard: required: true type: string jobs: test: strategy: fail-fast: false matrix: node-version: [18.x, 20.x, 22.x, 24.x, 25.x, 26.x] name: Node v${{ matrix.node-version }} runs-on: ${{ inputs.os }} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: node-version: ${{ matrix.node-version }} cache: yarn - name: install run: yarn --immutable - name: build run: yarn build:js - name: Get number of CPU cores id: cpu-cores uses: SimenB/github-actions-cpu-cores@97330871fe1b7d3529392ea000e3d2c4b357e403 # v3 - name: run node-env tests run: yarn workspace jest-environment-node test - name: run tests uses: nick-fields/retry@ad984534de44a9489a53aefd81eb77f87c70dc60 # v4 with: timeout_minutes: 10 max_attempts: 3 retry_on: error command: yarn test-ci-partial:parallel --max-workers ${{ steps.cpu-cores.outputs.count }} --shard=${{ inputs.shard }} test-jasmine: name: Node LTS using jest-jasmine2 runs-on: ${{ inputs.os }} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - name: Use Node.js LTS uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: node-version: lts/* cache: yarn - name: install run: yarn --immutable - name: build run: yarn build:js - name: Get number of CPU cores id: cpu-cores uses: SimenB/github-actions-cpu-cores@97330871fe1b7d3529392ea000e3d2c4b357e403 # v3 - name: run tests using jest-jasmine uses: nick-fields/retry@ad984534de44a9489a53aefd81eb77f87c70dc60 # v4 with: timeout_minutes: 10 max_attempts: 3 retry_on: error command: yarn jest-jasmine-ci --max-workers ${{ steps.cpu-cores.outputs.count }} --shard=${{ inputs.shard }}