generated from storybookjs/addon-kit
-
Notifications
You must be signed in to change notification settings - Fork 10
39 lines (31 loc) · 889 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Enable Corepack
run: corepack enable
- name: Setup Node.js
uses: actions/setup-node@v4
- name: Build coverage addon
run: |
yarn install
yarn build
- name: Run tests in webpack example
run: |
yarn install
npx playwright install --with-deps
yarn test-storybook:ci-coverage
working-directory: examples/webpack5
- name: Run tests in vite example
run: |
yarn install
npx playwright install --with-deps
yarn test-storybook:ci-coverage
working-directory: examples/vite
- name: Generate code coverage
uses: codecov/codecov-action@v3
with:
verbose: true