Skip to content

Commit

Permalink
Merge pull request #402 from webpack-contrib/github-actions
Browse files Browse the repository at this point in the history
Replace Travis with GitHub actions as CI
  • Loading branch information
valscion committed Dec 3, 2020
2 parents 9b84418 + d701153 commit 2d12514
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 31 deletions.
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.

0 comments on commit 2d12514

Please sign in to comment.