-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (38 loc) · 1023 Bytes
/
pull_request.yml
File metadata and controls
48 lines (38 loc) · 1023 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
47
48
name: 'Pull Request'
on:
push:
pull_request:
types: [opened reopened syncronize]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install dependencies
run: npm install
- name: Lint commit messages
uses: wagoid/commitlint-github-action@v1
- name: Lint code
run: npm run lint
- name: Lint styles
run: npm run lint:stylelint
- name: Check formatting
run: npm run prettier:check
chromatic:
name: Chromatic
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v1
- name: Install dependencies
run: npm install
- name: Build
run: npm run build-storybook
- name: Chromatic
uses: chromaui/action@v1
with:
storybookBuildDir: ./storybook-static
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}