Skip to content

Merge pull request #243 from TAMULib/cors-credentials #411

Merge pull request #243 from TAMULib/cors-credentials

Merge pull request #243 from TAMULib/cors-credentials #411

Workflow file for this run

name: Build
on: [ push, pull_request, workflow_dispatch ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: "Install Chrome Drivers"
run: sudo apt-get install xvfb
- name: "Node Cache"
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-cache-node-${{ hashFiles('**/package.json', '**/package-lock.json') }}
- name: "Node Modules Cache"
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-cache-node_modules-${{ hashFiles('**/package.json', '**/package-lock.json') }}
- name: "Setup Node"
uses: actions/setup-node@v2
with:
node-version: 12
- name: "Install Node"
run: npm install
- name: "Node Tests"
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: |
xvfb-run --auto-servernum npm run test:ci