[c] adjust workflow commands for NodeJS 18 #181
This file contains hidden or 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: '18' | |
- name: lint all markdownfiles | |
env: | |
PM_TECH: ${{secrets.PM_TECH}} | |
run: | | |
npm config set //registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}} | |
npm run npm | |
node_modules/.bin/markdownlint ./ --ignore node_modules | |
- 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: ${{secrets.PM_TECH}} | |
run: | | |
npm config set //registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}} | |
npm run npm | |
npm run clean | |
npm run test:update | |