Skip to content

Add publishing gh actions, update existing actions #240

Add publishing gh actions, update existing actions

Add publishing gh actions, update existing actions #240

name: "Functional Tests"
on:
push:
workflow_dispatch:
workflow_call:
pull_request:
branches:
- '*'
jobs:
build:
name: "Functional Tests"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version-file: .nvmrc
- run: npm install
- run: sudo apt-get install xvfb
# there's a weird typescript incompatibility with jest types and mocha types
# for whatever reason, just removing the mocha types module fixes the issue
# in addition, the jsdom type definitions don't play nicely with the functional tests
- run: rm -rf node_modules/@types/mocha node_modules/@types/jsdom
- run: xvfb-run --auto-servernum npm run test:functional