feat: Module system #1585
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Validate | |
on: | |
workflow_call: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
checks: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup | |
- run: pnpm check | |
build-demo: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup | |
- run: pnpm build:all | |
working-directory: packages/wxt-demo | |
- run: pnpm wxt zip | |
working-directory: packages/wxt-demo | |
tests: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup | |
- uses: oven-sh/setup-bun@v1 | |
- name: pnpm test:coverage | |
run: pnpm test:coverage --reporter=default --reporter=hanging-process | |
- uses: codecov/codecov-action@v4 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
windows-tests: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup | |
- run: pnpm test run | |
template: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
template: | |
- react | |
- solid | |
- svelte | |
- vanilla | |
- vue | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup | |
- run: pnpm pack | |
working-directory: packages/wxt | |
- run: npm i | |
working-directory: templates/${{ matrix.template }} | |
- run: npm i -D ../../packages/wxt/wxt-*.tgz | |
working-directory: templates/${{ matrix.template }} | |
- run: pnpm compile | |
if: matrix.template != 'svelte' | |
working-directory: templates/${{ matrix.template }} | |
- run: pnpm check | |
if: matrix.template == 'svelte' | |
working-directory: templates/${{ matrix.template }} | |
- run: pnpm build | |
working-directory: templates/${{ matrix.template }} |