Skip to content

Commit 2d12514

Browse files
authored
Merge pull request #402 from webpack-contrib/github-actions
Replace Travis with GitHub actions as CI
2 parents 9b84418 + d701153 commit 2d12514

2 files changed

Lines changed: 52 additions & 31 deletions

File tree

.github/workflows/main.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: main
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
jobs:
8+
build-and-test:
9+
strategy:
10+
matrix:
11+
node:
12+
- '10'
13+
- '12'
14+
- '14'
15+
runs-on: ubuntu-latest
16+
name: Tests on Node.js v${{ matrix.node }}
17+
steps:
18+
- name: Checkout repo
19+
uses: actions/checkout@v2
20+
21+
- name: Setup node
22+
uses: actions/setup-node@v1
23+
with:
24+
node-version: ${{ matrix.node }}
25+
26+
- name: Download deps
27+
uses: bahmutov/npm-install@v1
28+
29+
- name: Build sources
30+
run: npm run build
31+
32+
- name: Run tests with xvfb available
33+
uses: GabrielBB/xvfb-action@v1
34+
with:
35+
run: npm run test
36+
37+
lint:
38+
runs-on: ubuntu-latest
39+
steps:
40+
- name: Checkout repo
41+
uses: actions/checkout@v2
42+
43+
- name: Setup node
44+
uses: actions/setup-node@v1
45+
with:
46+
node-version: '14.x'
47+
48+
- name: Download deps
49+
uses: bahmutov/npm-install@v1
50+
51+
- name: Run lint
52+
run: npm run lint

.travis.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)