Skip to content

Commit 4788ed8

Browse files
committed
WIP
1 parent 62b50fb commit 4788ed8

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

.github/workflows/build-lint-test.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build, Lint, and Test
1+
name: Build, Lint, Test
22

33
on:
44
push:
@@ -21,11 +21,29 @@ jobs:
2121
- run: yarn --frozen-lockfile
2222
- run: yarn build
2323
- run: yarn lint
24-
- run: yarn test
24+
- run: yarn
25+
validate-changelog:
26+
name: Validate changelog
27+
runs-on: ubuntu-20.04
28+
steps:
29+
- uses: actions/checkout@v2
30+
- name: Use Node.js v12
31+
uses: actions/setup-node@v1
32+
with:
33+
node-version: 12
34+
- run: yarn --frozen-lockfile
35+
- run: yarn build
36+
- name: Validate RC changelog
37+
if: ${{ startsWith(github.ref, 'release-v') }}
38+
run: yarn changelog validate --rc
39+
- name: Validate changelog
40+
if: ${{ !startsWith(github.ref, 'release-v') }}
41+
run: yarn changelog validate
2542
all-jobs-pass:
2643
name: All jobs pass
2744
runs-on: ubuntu-20.04
2845
needs:
2946
- build-lint-test
47+
- validate-changelog
3048
steps:
3149
- run: echo "Great success!"

0 commit comments

Comments
 (0)