Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit 850e9cd

Browse files
committed
ci: added lint step
1 parent 1b67ab9 commit 850e9cd

File tree

2 files changed

+29
-5
lines changed

2 files changed

+29
-5
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,18 @@ on:
1414
- .github/**/*.yml
1515

1616
jobs:
17+
lint:
18+
name: lint
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@master
22+
- uses: actions/setup-node@master
23+
with:
24+
node-version: 12.x
25+
- run: npx yarn bootstrap
26+
- run: npx yarn typescript
27+
- run: npx yarn lint
28+
1729
test:
1830
strategy:
1931
matrix:
@@ -30,7 +42,7 @@ jobs:
3042
- run: npx yarn test
3143

3244
coverage:
33-
needs: [test]
45+
needs: [test, lint]
3446
name: coverage
3547
runs-on: ubuntu-latest
3648
steps:
@@ -47,7 +59,7 @@ jobs:
4759
debug: true
4860

4961
publish:
50-
needs: [test]
62+
needs: [test, lint]
5163
name: Publish example app to Expo 🚀
5264
runs-on: ubuntu-latest
5365
steps:
@@ -65,7 +77,7 @@ jobs:
6577
run: expo publish
6678

6779
chromatic:
68-
needs: [test]
80+
needs: [test, lint]
6981
name: Publish storybook to chromatic 🧪
7082
runs-on: ubuntu-latest
7183
steps:

.github/workflows/review.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@ name: review
22
on: pull_request
33

44
jobs:
5+
lint:
6+
name: lint
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@master
10+
- uses: actions/setup-node@master
11+
with:
12+
node-version: 12.x
13+
- run: npx yarn bootstrap
14+
- run: npx yarn typescript
15+
- run: npx yarn lint
16+
517
test:
618
strategy:
719
matrix:
@@ -18,7 +30,7 @@ jobs:
1830
- run: npx yarn test
1931

2032
coverage:
21-
needs: [test]
33+
needs: [test, lint]
2234
name: coverage
2335
runs-on: ubuntu-latest
2436
steps:
@@ -33,7 +45,7 @@ jobs:
3345
github-token: ${{ secrets.GITHUB_TOKEN }}
3446

3547
chromatic:
36-
needs: [test]
48+
needs: [test, lint]
3749
name: Publish storybook to chromatic 🧪
3850
runs-on: ubuntu-latest
3951
steps:

0 commit comments

Comments
 (0)