Skip to content

Commit

Permalink
chore: migrate from travis & appveyor to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jantimon committed Jan 20, 2021
1 parent 13416de commit a8ce9b0
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 45 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI
on: [push]
jobs:
build:
name: test Node ${{ matrix.node }} Webpack ${{ matrix.webpack }} ${{ matrix.os }}
timeout-minutes: 15

runs-on: ${{ matrix.os }}
strategy:
matrix:
node: ['6.x', '12.x', '14.x']
os: [ubuntu-latest, windows-latest]
webpack: ['4']

steps:
- name: LF
run: git config --global core.autocrlf false

- name: Checkout repo
uses: actions/checkout@v2

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

- name: Install Dependencies
run: npm install --ignore-scripts --force --legacy-peer-deps

- name: Install Webpack ${{ matrix.webpack }}
run: npm install --ignore-scripts --force --legacy-peer-deps webpack@${{ matrix.webpack }}

- name: Test
run: npm test -- --forceExit || npm test -- --forceExit || npm test -- --forceExit
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -666,5 +666,5 @@ This project uses the [semistandard code style](https://github.com/Flet/semistan
[deps]: https://david-dm.org/jantimon/html-webpack-plugin.svg
[deps-url]: https://david-dm.org/jantimon/html-webpack-plugin

[tests]: http://img.shields.io/travis/jantimon/html-webpack-plugin.svg
[tests-url]: https://travis-ci.org/jantimon/html-webpack-plugin
[tests]: https://github.com/jantimon/html-webpack-plugin/workflows/CI/badge.svg
[tests-url]: https://github.com/jantimon/html-webpack-plugin/actions?query=workflow%3ACI
23 changes: 0 additions & 23 deletions appveyor.yml

This file was deleted.

4 changes: 3 additions & 1 deletion spec/basic.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ const rimraf = require('rimraf');
const _ = require('lodash');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const webpackMajorVersion = Number(require('webpack/package.json').version.split('.')[0]);
const itUnixOnly = (process.platform === 'win32' || process.platform === 'win64') ? it.skip : it;

if (isNaN(webpackMajorVersion)) {
throw new Error('Cannot parse webpack major version');
}
Expand Down Expand Up @@ -116,7 +118,7 @@ describe('HtmlWebpackPlugin', () => {
}, [/<body>[\s]*<script src="foo\/very%20fancy%2Bname.js"><\/script>[\s]*<\/body>/], null, done);
});

it('properly encodes file names in emitted URIs but keeps the querystring', done => {
itUnixOnly('properly encodes file names in emitted URIs but keeps the querystring', done => {
testHtmlPlugin({
mode: 'production',
entry: path.join(__dirname, 'fixtures/index.js'),
Expand Down

0 comments on commit a8ce9b0

Please sign in to comment.