Merge pull request #187 from dagrejs/dependabot/npm_and_yarn/browseri… #193
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: Build Status | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: browser-actions/setup-firefox@latest | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
cache-dependency-path: package-lock.json | |
- name: Install dependencies | |
run: | | |
npm install | |
sudo apt-get install graphviz xvfb | |
- name: Build | |
run: | | |
make build/graphlib.js build/graphlib.min.js | |
- name: Lint | |
run: | | |
make lint | |
- name: Test | |
run: | | |
KARMA_OPTS="--browsers Firefox" xvfb-run --auto-servernum make -e test |