-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (35 loc) · 1.05 KB
/
ci.yml
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
name: CI
on:
pull_request:
branches:
- develop
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@master
with:
node-version: '14'
- name: lint all markdownfiles
env:
PM_TECH_RT: ${{secrets.PM_TECH_RT}}
run: |
npm config set //registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}
npm install
node_modules/.bin/markdownlint ./ --ignore node_modules --fix
- name: check for image url
run: |
if grep -lri 's3.amazonaws.com/postman-static-getpostman-com' ./src/pages/docs ;
then echo "Invalid s3 references found. Please use format 'https://assets.postman.com/postman-docs/[filename-in-s3]'";
exit 1;
else echo "no s3 references found";
fi
- name: running unit tests
env:
PM_TECH_RT: ${{secrets.PM_TECH_RT}}
run: |
npm config set //registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}
npm install
npm run clean
npm run test:update