Skip to content

Commit bb14c18

Browse files
ci: github actions (#39)
1 parent edce1b8 commit bb14c18

7 files changed

Lines changed: 181 additions & 132 deletions

File tree

.github/workflows/ci.yml

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- next
8+
pull_request:
9+
branches:
10+
- "**"
11+
12+
env:
13+
CI: true
14+
15+
jobs:
16+
lint:
17+
name: Lint on Node.js ${{ matrix.node }} and ${{ matrix.os }}
18+
19+
runs-on: ${{ matrix.os }}
20+
21+
strategy:
22+
matrix:
23+
node: [12]
24+
os: [ubuntu-latest]
25+
26+
steps:
27+
- uses: actions/checkout@v2
28+
29+
- name: Use Node.js ${{ matrix.node }}
30+
uses: actions/setup-node@v1
31+
with:
32+
node-version: ${{ matrix.node }}
33+
34+
- name: Install latest npm
35+
run: npm install --global npm@latest
36+
37+
- name: Install dependencies
38+
run: npm ci
39+
40+
- name: Lint
41+
run: npm run pretest
42+
43+
test:
44+
name: Test on Node.js ${{ matrix.node }} and ${{ matrix.os }}
45+
46+
runs-on: ${{ matrix.os }}
47+
48+
strategy:
49+
fail-fast: false
50+
matrix:
51+
node: [10, 12, 13]
52+
os: [ubuntu-latest, windows-latest, macos-latest]
53+
54+
steps:
55+
- uses: actions/checkout@v2
56+
57+
- name: Use Node.js ${{ matrix.node }}
58+
uses: actions/setup-node@v1
59+
with:
60+
node-version: ${{ matrix.node }}
61+
62+
- name: Install latest npm
63+
run: npm install --global npm@latest
64+
65+
- name: Install dependencies
66+
run: npm ci
67+
68+
- name: Test
69+
run: npm run test:only
70+
71+
test-next:
72+
name: Test on Node.js ${{ matrix.node }} and ${{ matrix.os }} (next)
73+
74+
runs-on: ${{ matrix.os }}
75+
76+
strategy:
77+
fail-fast: false
78+
matrix:
79+
node: [10]
80+
os: [ubuntu-latest, windows-latest, macos-latest]
81+
82+
steps:
83+
- uses: actions/checkout@v2
84+
85+
- name: Use Node.js ${{ matrix.node }}
86+
uses: actions/setup-node@v1
87+
with:
88+
node-version: ${{ matrix.node }}
89+
90+
- name: Install latest npm
91+
run: npm install --global npm@latest
92+
93+
- name: Install dependencies
94+
run: npm ci
95+
96+
- name: Install webpack@next
97+
run: npm i webpack@next
98+
99+
- name: Test
100+
run: npm run test:only

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# execa-webpack-plugin
22

33
[![NPM version](https://img.shields.io/npm/v/execa-webpack-plugin.svg)](https://www.npmjs.org/package/execa-webpack-plugin)
4-
[![Travis Build Status](https://img.shields.io/travis/itgalaxy/execa-webpack-plugin/master.svg?label=build)](https://travis-ci.org/itgalaxy/execa-webpack-plugin)
4+
[![Build Status](https://github.com/itgalaxy/execa-webpack-plugin/workflows/CI/badge.svg)](https://github.com/itgalaxy/execa-webpack-plugin/actions)
55
[![dependencies Status](https://david-dm.org/itgalaxy/execa-webpack-plugin/status.svg)](https://david-dm.org/itgalaxy/execa-webpack-plugin)
66
[![devDependencies Status](https://david-dm.org/itgalaxy/execa-webpack-plugin/dev-status.svg)](https://david-dm.org/itgalaxy/execa-webpack-plugin?type=dev)
77

0 commit comments

Comments
 (0)