-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (36 loc) · 955 Bytes
/
test.yml
File metadata and controls
47 lines (36 loc) · 955 Bytes
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
40
41
42
43
44
45
46
name: Run Tests
on:
push:
branches: [main]
pull_request:
branches: ["**"]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '22.9.0'
- name: Setup Yarn Corepack
run: corepack enable
- name: Install dependencies
run: yarn install
- uses: dtinth/setup-github-actions-caching-for-turbo@v1
- name: Install Playwright Chromium
run: npx playwright install chromium
- name: Run tests
run: yarn test
- name: Upload artifacts on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: test-failure
path: packages/components/storybook-static
retention-days: 2