[Snyk] Security upgrade pdfjs-dist from 2.6.347 to 4.2.67 #68
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: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
env: | |
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }} | |
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }} | |
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install NodeJS | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
- name: Update npm | |
run: npm install -g [email protected] | |
- name: Install npm packages for PDF-viewer-reactjs Package | |
run: npm install | |
- name: Build PDF-viewer-reactjs Package | |
run: npm run build | |
- name: Upload coverage to Codacy | |
run: bash <(curl -Ls https://coverage.codacy.com/get.sh) report | |
- name: Upload coverage to Codecov | |
run: bash <(curl -s https://codecov.io/bash) | |
- name: Install npm packages for Example App | |
run: npm install --prefix example/ | |
- name: Run tests for Example App | |
run: npm test --prefix example/ |