-
Notifications
You must be signed in to change notification settings - Fork 4
54 lines (53 loc) · 1.41 KB
/
pr-checks.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
name: Pull Request Checks
on:
pull_request:
push:
branches:
- main
concurrency:
group: pr-checks-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
name: Lint, Prettier & Jest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: yarn
- run: yarn
- run: yarn lint:all
- run: yarn prettier:check
- run: yarn test:ci
- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v5
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: Frontend Unit Test Results
path: "!(node_modules)/**/reports/jest-junit.xml"
reporter: jest-junit
chromatic:
needs: lint
runs-on: ubuntu-latest
name: Deploy Chromatic
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 18
cache: yarn
- run: yarn
- run: yarn prebuild-storybook
working-directory: packages/skylarktv
- name: Publish to Chromatic
uses: chromaui/action@v11
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
workingDir: packages/skylarktv
autoAcceptChanges: main