Merge pull request #237 from storybookjs/support-vite-plugin-svelte-5 #223
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: [push] | |
defaults: | |
run: | |
shell: bash | |
env: | |
CI: true | |
permissions: | |
contents: read | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
timeout-minutes: 2 | |
steps: | |
# https://github.com/actions/checkout | |
- uses: actions/checkout@v4 | |
- name: Enable corepack (for pnpm) | |
# https://nodejs.org/api/corepack.html | |
run: corepack enable | |
- name: Setup Node.js | |
# https://github.com/actions/setup-node | |
uses: actions/setup-node@v4 | |
with: | |
cache: pnpm | |
node-version-file: '.nvmrc' | |
- name: Install Node.js dependencies with pnpm | |
# https://pnpm.io/cli/install | |
run: > | |
pnpm install | |
--frozen-lockfile | |
- name: Run tests with Vitest | |
# https://vitest.dev/guide/cli.html | |
run: > | |
pnpm vitest run |