Skip to content

3.0.0-beta.2

3.0.0-beta.2 #66

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/