Skip to content

Commit aa624f8

Browse files
dariuszkucsmyrick
authored andcommitted
[build] configure GH action PR check for documentation updates (ExpediaGroup#549)
* [build] configure GH action PR check for documentation updates Github Action checks out the repository and attempts to run [docusaurus-build](https://docusaurus.io/docs/en/commands#docusaurus-build) command. * limit PR check to just docs and website directories
1 parent 4ff2092 commit aa624f8

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/pr-check-docs.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Documentation PR Check
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
paths:
8+
- 'docs/**'
9+
- 'website/**'
10+
11+
jobs:
12+
check-docs:
13+
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
19+
- name: Use Node.js 12
20+
uses: actions/setup-node@v1
21+
with:
22+
node-version: 12
23+
24+
- name: Run npm commands
25+
if: github.repository == 'ExpediaGroup/graphql-kotlin'
26+
run: |
27+
cd website
28+
npm install
29+
npm build

0 commit comments

Comments
 (0)