npm latest #4229
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: Test | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: [main] | |
push: | |
branches: [main] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
node: | |
name: Node | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
uses: ./.github/actions/setup | |
- run: pnpm vitest | |
edge: | |
name: Edge | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
uses: ./.github/actions/setup | |
- run: pnpm vitest --environment edge-runtime | |
browser: | |
name: Browser ${{ matrix.shard }} (${{ matrix.browser }}) | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
browser: [chromium] | |
shard: [1/3, 2/3, 3/3] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
uses: ./.github/actions/setup | |
- run: pnpm playwright install --with-deps ${{ matrix.browser }} | |
- run: pnpm vitest --browser ${{ matrix.browser }} --shard ${{ matrix.shard }} | |
bun: | |
name: Bun | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
uses: ./.github/actions/setup | |
- name: Install bun | |
uses: oven-sh/setup-bun@v1 | |
- run: bun vitest | |
deno: | |
name: Deno | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
uses: ./.github/actions/setup | |
- uses: denoland/setup-deno@v1 | |
with: | |
deno-version: v1.x | |
- run: deno task test |