Skip to content

Replace Travis CI with Github Actions #2

Replace Travis CI with Github Actions

Replace Travis CI with Github Actions #2

Workflow file for this run

name: Lint and Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10, 12, 14]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install Chrome
run: |
sudo apt-get update
sudo apt-get install -y chromium-browser
- name: Install dependencies
run: npm install
- name: Run ESLint and tests
run: npm test
env:
CHROME_BIN: /usr/bin/chromium-browser