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:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Run linting
run: npm run eslint
- name: Run tests
run: npm test