[Snyk] Security upgrade ngx-markdown from 16.0.0 to 17.0.0 #39
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: Check pull request | |
on: | |
pull_request: | |
jobs: | |
check-code: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Node.js 16.x to publish to npmjs.org | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '16.x' | |
registry-url: 'https://registry.npmjs.org' | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Install Packages | |
run: npm i --force | |
- name: Lint | |
run: npm run lint | |
env: | |
CI: true | |
- name: Test | |
run: npm run test | |
env: | |
CI: true | |
- name: Archive test screenshots | |
uses: actions/upload-artifact@v1 | |
with: | |
name: screenshots | |
path: cypress/screenshots | |
if: ${{ failure() }} | |
- name: Archive test videos | |
uses: actions/upload-artifact@v1 | |
with: | |
name: videos | |
path: cypress/videos | |
if: ${{ failure() }} | |
- name: Prepare reports | |
if: always() | |
run: | | |
npm i -g mochawesome-merge | |
npm i -g mochawesome-report-generator | |
mochawesome-merge cypress/reports/mocha/*.json > ./cypress/reports/mocha/index.json | |
marge --charts=true --showPassed=false -o ./cypress/reports/mocha/ ./cypress/reports/mocha/index.json | |
- name: Cypress report | |
uses: dmitry/cypress-report-action@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
pathname: cypress/reports/mocha/index.json | |
if: always() |