Skip to content

feat: Merge @swc/jest into the monorepo #5

feat: Merge @swc/jest into the monorepo

feat: Merge @swc/jest into the monorepo #5

Workflow file for this run

name: CI
on:
push:
branches: ["main"]
pull_request:
types: [opened, synchronize]
merge_group:
env:
CI: 1
jobs:
test:
name: Test
timeout-minutes: 15
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16, 18, 20]
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup Node.js
uses: ./.github/actions/setup-node
with:
node-version: ${{ matrix.node-version }}
- name: Test
run: pnpm test
lint:
name: Lint
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: ./.github/actions/setup-node
with:
node-version: 20
- name: Test
run: pnpm lint
ci-done:
name: Ok
needs:
- test
- lint
if: always()
runs-on: ubuntu-latest
steps:
- run: exit 1
if: ${{ always() && (contains(needs.*.result, 'failure') || contains(needs.*.result, 'skipped') || contains(needs.*.result, 'cancelled')) }}