[MARKENG-3422][c] update pmt from v.2.0.22 to v.2.0.26 #81
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |