Skip to content

Commit a8ce9b0

Browse files
committed
chore: migrate from travis & appveyor to github actions
1 parent 13416de commit a8ce9b0

File tree

5 files changed

+39
-45
lines changed

5 files changed

+39
-45
lines changed

.github/workflows/main.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
on: [push]
3+
jobs:
4+
build:
5+
name: test Node ${{ matrix.node }} Webpack ${{ matrix.webpack }} ${{ matrix.os }}
6+
timeout-minutes: 15
7+
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
node: ['6.x', '12.x', '14.x']
12+
os: [ubuntu-latest, windows-latest]
13+
webpack: ['4']
14+
15+
steps:
16+
- name: LF
17+
run: git config --global core.autocrlf false
18+
19+
- name: Checkout repo
20+
uses: actions/checkout@v2
21+
22+
- name: Use Node ${{ matrix.node }}
23+
uses: actions/setup-node@v1
24+
with:
25+
node-version: ${{ matrix.node }}
26+
27+
- name: Install Dependencies
28+
run: npm install --ignore-scripts --force --legacy-peer-deps
29+
30+
- name: Install Webpack ${{ matrix.webpack }}
31+
run: npm install --ignore-scripts --force --legacy-peer-deps webpack@${{ matrix.webpack }}
32+
33+
- name: Test
34+
run: npm test -- --forceExit || npm test -- --forceExit || npm test -- --forceExit

.travis.yml

-19
This file was deleted.

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -666,5 +666,5 @@ This project uses the [semistandard code style](https://github.com/Flet/semistan
666666
[deps]: https://david-dm.org/jantimon/html-webpack-plugin.svg
667667
[deps-url]: https://david-dm.org/jantimon/html-webpack-plugin
668668

669-
[tests]: http://img.shields.io/travis/jantimon/html-webpack-plugin.svg
670-
[tests-url]: https://travis-ci.org/jantimon/html-webpack-plugin
669+
[tests]: https://github.com/jantimon/html-webpack-plugin/workflows/CI/badge.svg
670+
[tests-url]: https://github.com/jantimon/html-webpack-plugin/actions?query=workflow%3ACI

appveyor.yml

-23
This file was deleted.

spec/basic.spec.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ const rimraf = require('rimraf');
1212
const _ = require('lodash');
1313
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
1414
const webpackMajorVersion = Number(require('webpack/package.json').version.split('.')[0]);
15+
const itUnixOnly = (process.platform === 'win32' || process.platform === 'win64') ? it.skip : it;
16+
1517
if (isNaN(webpackMajorVersion)) {
1618
throw new Error('Cannot parse webpack major version');
1719
}
@@ -116,7 +118,7 @@ describe('HtmlWebpackPlugin', () => {
116118
}, [/<body>[\s]*<script src="foo\/very%20fancy%2Bname.js"><\/script>[\s]*<\/body>/], null, done);
117119
});
118120

119-
it('properly encodes file names in emitted URIs but keeps the querystring', done => {
121+
itUnixOnly('properly encodes file names in emitted URIs but keeps the querystring', done => {
120122
testHtmlPlugin({
121123
mode: 'production',
122124
entry: path.join(__dirname, 'fixtures/index.js'),

0 commit comments

Comments
 (0)