-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (56 loc) · 1.77 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
name: CI
on:
push:
pull_request:
workflow_dispatch:
jobs:
runLint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup environment
uses: ./.github/actions/setupEnvironment
- name: Run Eslint
run: npm run lint
runTypecheck:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup environment
uses: ./.github/actions/setupEnvironment
- name: Run Typescript
run: npm run tsc
runFormatter:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup environment
uses: ./.github/actions/setupEnvironment
- name: Run Prettier
run: npm run check-format
runTests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup environment
uses: ./.github/actions/setupEnvironment
- name: Install browsers
run: npm run install-browsers
- uses: JarvusInnovations/background-action@v1
name: Start server
with:
run: npm run storybook
wait-on: http://localhost:6006
tail: true
log-output-resume: stderr
wait-for: 1m
log-output: stderr,stdout
log-output-if: failure
- name: Run tests
run: npm run test
- name: Upload coverage report
uses: coverallsapp/github-action@v2