-
-
Notifications
You must be signed in to change notification settings - Fork 43
65 lines (64 loc) · 2.08 KB
/
ci.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Pull Request - Lint/Build/Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
pull_request:
timeout-minutes: 20
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: "20"
- name: Install dependencies
run: npm ci
- uses: nrwl/nx-set-shas@v4
- run: npx playwright install --with-deps
# Re-enable, once we don't have weird depdenency issues, because of the shared src/ folder
# - run: npx nx affected -t lint test build
- run: npx nx run-many --all -t lint test build api-extractor
- uses: actions/upload-artifact@v4
if: always()
with:
name: react-spa playwright-report
path: |
examples/react-spa/playwright-report/
examples/react-spa/test-results/
retention-days: 7
- uses: actions/upload-artifact@v4
if: always()
with:
name: preact-spa playwright-report
path: |
examples/preact-spa/playwright-report/
examples/preact-spa/test-results/
retention-days: 7
- uses: actions/upload-artifact@v4
if: always()
with:
name: nextjs-spa playwright-report
path: |
examples/nextjs-spa/playwright-report/
examples/nextjs-spa/test-results/
retention-days: 7
- uses: chromaui/[email protected]
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
exitOnceUploaded: true
workingDir: packages/legacy-stories
storybookBuildDir: storybook-static
- uses: chromaui/[email protected]
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN_ELEMENTS_REACT }}
exitOnceUploaded: true
workingDir: packages/elements-react-stories
storybookBuildDir: storybook-static
- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}