Skip to content

test: fix pattern + setup #1468

test: fix pattern + setup

test: fix pattern + setup #1468

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-node@v4
with:
node-version: 18
- run: npm ci
- run: yarn lint
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20, "lts/*"]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: yarn tsc --noEmit --project tsconfig.build.json
- run: yarn build
- run: npx wsrun -m prepack
core-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-node@v4
with:
node-version: 18
- run: npm ci
- run: yarn test:core
- name: Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
wtr-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-node@v4
with:
node-version: 18
- run: npm ci
- run: yarn test:web --puppeteer
- name: Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}