Skip to content

test

test #1045

Workflow file for this run

name: test
on:
push:
branches: [main]
pull_request:
schedule:
- cron: "0 */3 * * *"
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm i -g pnpm && pnpm i
name: Install dependencies
- run: pnpm build --filter esbuild-plugin-react18-example
name: build example app to run tests
- name: Run unit tests
run: pnpm test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
directory: ./packages/esbuild-plugin-react18
token: ${{ secrets.CODECOV_TOKEN }}
flags: esbuild-plugin-react18