-
Notifications
You must be signed in to change notification settings - Fork 64
38 lines (38 loc) · 1.18 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
name: CI
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
- id: node-cache
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/.nvmrc') }}-${{ hashFiles('**/package-lock.json') }}
- if: steps.node-cache.outputs.cache-hit != 'true'
run: npm ci
- run: npm run lint -s
- run: npm run dist -s && mv storybook-static public/storybook
- run: npm run report:size
- run: npm run report:package
- run: npm run test:coverage -s --json --runInBand
# - run: npm run test:integration -s
- run: npm run test:performance -s
- run: base64 < ./tests/integration/__image_snapshots__/__diff_output__/* || true
- run: mv coverage/lcov-report build || true
- uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v3
with:
name: reports
path: public
retention-days: 1