Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Travis with GitHub actions as CI #402

Merged
merged 6 commits into from Dec 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
52 changes: 52 additions & 0 deletions .github/workflows/main.yml
@@ -0,0 +1,52 @@
name: main
on:
push:
branches:
- master
pull_request:
jobs:
build-and-test:
strategy:
matrix:
node:
- '10'
- '12'
- '14'
runs-on: ubuntu-latest
name: Tests on Node.js v${{ matrix.node }}
steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Setup node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- name: Download deps
uses: bahmutov/npm-install@v1

- name: Build sources
run: npm run build

- name: Run tests with xvfb available
uses: GabrielBB/xvfb-action@v1
with:
run: npm run test

lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Setup node
uses: actions/setup-node@v1
with:
node-version: '14.x'

- name: Download deps
uses: bahmutov/npm-install@v1

- name: Run lint
run: npm run lint
31 changes: 0 additions & 31 deletions .travis.yml

This file was deleted.