Skip to content

Commit cb49096

Browse files
authored
test: check if build is up to date (#45)
1 parent 4279327 commit cb49096

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.circleci/config.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ scripts: &scripts
99
- run: yarn lint
1010
- run: yarn build
1111

12+
uptodate: &uptodate
13+
steps:
14+
- checkout
15+
- run: yarn
16+
- run: yarn build
17+
- run: git diff --exit-code build
18+
1219
jobs:
1320
node-10:
1421
<<: *scripts
@@ -26,6 +33,12 @@ jobs:
2633
<<: *scripts
2734
docker:
2835
- image: circleci/node:14
36+
uptodate:
37+
<<: *uptodate
38+
requires:
39+
- node-12
40+
docker:
41+
- image: circleci/node:12
2942

3043
workflows:
3144
version: 2
@@ -35,3 +48,4 @@ workflows:
3548
- node-12
3649
- node-13
3750
- node-14
51+
- uptodate

0 commit comments

Comments
 (0)