Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: migrate to github-actions #611

Merged
merged 87 commits into from
Apr 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
9a665ec
chore(deps): update jest
hiroppy Apr 3, 2020
aa950a5
chore: migrate to github-actions
hiroppy Apr 5, 2020
c331bfb
test: don't use fixed values
hiroppy Apr 5, 2020
6a26cc6
chore: feedback
hiroppy Apr 6, 2020
7b956ef
ci: improve
alexander-akait Apr 7, 2020
c207e61
ci: improve
alexander-akait Apr 7, 2020
3e99451
ci: improve
alexander-akait Apr 7, 2020
07a095d
ci: improve
alexander-akait Apr 7, 2020
d63cbb7
ci: improve
alexander-akait Apr 7, 2020
fb5636d
ci: improve
alexander-akait Apr 7, 2020
57b5bb6
ci: improve
alexander-akait Apr 7, 2020
3d96c8d
ci: improve
alexander-akait Apr 7, 2020
489ed65
ci: improve
alexander-akait Apr 7, 2020
e4b80eb
ci: improve
alexander-akait Apr 7, 2020
0493ea0
ci: improve
alexander-akait Apr 7, 2020
55e0a31
ci: improve
alexander-akait Apr 7, 2020
dbb851c
ci: improve
alexander-akait Apr 7, 2020
b0487fa
ci: improve
alexander-akait Apr 7, 2020
f52b70f
ci: improve
alexander-akait Apr 7, 2020
d22d600
ci: improve
alexander-akait Apr 7, 2020
e486e19
ci: improve
alexander-akait Apr 7, 2020
21e498a
ci: improve
alexander-akait Apr 7, 2020
3cfce58
ci: improve
alexander-akait Apr 7, 2020
ebc4db4
ci: improve
alexander-akait Apr 7, 2020
a2a78ea
ci: improve
alexander-akait Apr 7, 2020
2ad103b
ci: improve
alexander-akait Apr 7, 2020
e2eed1b
ci: improve
alexander-akait Apr 7, 2020
f85e33b
ci: improve
alexander-akait Apr 7, 2020
580cd58
ci: improve
alexander-akait Apr 7, 2020
83e86f7
ci: improve
alexander-akait Apr 7, 2020
6686795
ci: improve
alexander-akait Apr 7, 2020
2bea4c7
ci: improve
alexander-akait Apr 7, 2020
e469d2d
ci: improve
alexander-akait Apr 7, 2020
d61ad72
ci: improve
alexander-akait Apr 7, 2020
4e93405
ci: improve
alexander-akait Apr 7, 2020
81954e6
ci: improve
alexander-akait Apr 7, 2020
ad40ce5
ci: improve
alexander-akait Apr 7, 2020
6b7e48d
ci: improve
alexander-akait Apr 7, 2020
11bab6b
ci: improve
alexander-akait Apr 7, 2020
c269c23
ci: improve
alexander-akait Apr 7, 2020
21f852c
ci: improve
alexander-akait Apr 7, 2020
469906c
ci: improve
alexander-akait Apr 7, 2020
46d1402
ci: improve
alexander-akait Apr 7, 2020
b84946f
ci: improve
alexander-akait Apr 7, 2020
f59b99a
ci: improve
alexander-akait Apr 7, 2020
be7194d
ci: improve
alexander-akait Apr 7, 2020
09ae227
ci: improve
alexander-akait Apr 7, 2020
92c8cc2
ci: improve
alexander-akait Apr 7, 2020
b25097d
ci: improve
alexander-akait Apr 7, 2020
ac88f04
ci: improve
alexander-akait Apr 7, 2020
f78f57a
ci: improve
alexander-akait Apr 7, 2020
7c0fff3
ci: improve
alexander-akait Apr 7, 2020
9213234
ci: improve
alexander-akait Apr 7, 2020
812316a
ci: improve
alexander-akait Apr 7, 2020
69b5d42
ci: improve
alexander-akait Apr 7, 2020
c700cc8
ci: improve
alexander-akait Apr 7, 2020
378207b
ci: improve
alexander-akait Apr 7, 2020
65ebd88
ci: improve
alexander-akait Apr 7, 2020
7932fba
ci: improve
alexander-akait Apr 7, 2020
0547518
ci: improve
alexander-akait Apr 7, 2020
d76370e
ci: improve
alexander-akait Apr 7, 2020
b44c9b1
ci: improve
alexander-akait Apr 7, 2020
8099910
ci: improve
alexander-akait Apr 7, 2020
94a64a8
ci: improve
alexander-akait Apr 7, 2020
773b523
ci: improve
alexander-akait Apr 7, 2020
e1ed1cf
ci: improve
alexander-akait Apr 7, 2020
ef3408f
ci: improve
alexander-akait Apr 7, 2020
94efd4a
ci: improve
alexander-akait Apr 7, 2020
5e975c1
ci: improve
alexander-akait Apr 7, 2020
cabbcd3
ci: improve
alexander-akait Apr 7, 2020
2d19bd5
ci: improve
alexander-akait Apr 7, 2020
cb4494b
ci: improve
alexander-akait Apr 7, 2020
34b0a27
ci: improve
alexander-akait Apr 7, 2020
35f68d3
ci: improve
alexander-akait Apr 7, 2020
39e537a
ci: improve
alexander-akait Apr 7, 2020
a8df486
ci: improve
alexander-akait Apr 7, 2020
e1165c7
ci: improve
alexander-akait Apr 7, 2020
68ab319
ci: improve
alexander-akait Apr 7, 2020
10cefa5
ci: improve
alexander-akait Apr 7, 2020
01d7183
ci: improve
alexander-akait Apr 8, 2020
609eee4
ci: improve
alexander-akait Apr 8, 2020
28eaa15
ci: improve
alexander-akait Apr 8, 2020
f9f671c
ci: improve
alexander-akait Apr 8, 2020
a221ad9
ci: improve
alexander-akait Apr 8, 2020
bf99c0e
ci: improve
alexander-akait Apr 9, 2020
174ba70
ci: improve
alexander-akait Apr 9, 2020
5aebf98
ci: improve
alexander-akait Apr 9, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
99 changes: 99 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
name: webpack-dev-middleware

on:
push:
branches:
- master
- next
pull_request:
branches:
- master
- next

jobs:
lint:
name: Lint - ${{ matrix.os }} - Node v${{ matrix.node-version }}

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

strategy:
matrix:
os: [ubuntu-latest]
node-version: [12.x]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

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

- name: Use latest NPM
run: sudo npm i -g npm

- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint

- name: Security audit
run: npm run security

- name: Check commit message
uses: wagoid/commitlint-github-action@v1

test:
name: Test - ${{ matrix.os }} - Node v${{ matrix.node-version }}, Webpack ${{ matrix.webpack-version }}

strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [10.x, 12.x, 13.x]
webpack-version: [latest, next]
exclude:
# See https://github.com/fsevents/fsevents/issues/314
- os: macos-latest
node-version: 12.x
webpack-version: latest
- os: macos-latest
node-version: 13.x
webpack-version: latest

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2

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

- name: Use latest NPM on ubuntu/macos
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
run: sudo npm i -g npm

- name: Use latest NPM on windows
if: matrix.os == 'windows-latest'
run: npm i -g npm

- name: Install dependencies
run: npm ci

- name: Install webpack ${{ matrix.webpack-version }}
run: npm i webpack@${{ matrix.webpack-version }}

- name: Run tests for webpack version ${{ matrix.webpack-version }}
run: npm run test:coverage -- --ci

- name: Submit coverage data to codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -356,8 +356,8 @@ Please take a moment to read our contributing guidelines if you haven't yet done
[node-url]: https://nodejs.org
[deps]: https://david-dm.org/webpack/webpack-dev-middleware.svg
[deps-url]: https://david-dm.org/webpack/webpack-dev-middleware
[tests]: https://dev.azure.com/webpack/webpack-dev-middleware/_apis/build/status/webpack.webpack-dev-middleware?branchName=master
[tests-url]: https://dev.azure.com/webpack/webpack-dev-middleware/_build/latest?definitionId=8&branchName=master
[tests]: https://github.com/webpack/webpack-dev-middleware/workflows/webpack-dev-middleware/badge.svg
[tests-url]: https://github.com/webpack/webpack-dev-middleware/actions
[cover]: https://codecov.io/gh/webpack/webpack-dev-middleware/branch/master/graph/badge.svg
[cover-url]: https://codecov.io/gh/webpack/webpack-dev-middleware
[chat]: https://badges.gitter.im/webpack/webpack.svg
Expand Down
189 changes: 0 additions & 189 deletions azure-pipelines.yml

This file was deleted.

1 change: 0 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use strict';

module.exports = {
testURL: 'http://localhost/',
collectCoverage: false,
coveragePathIgnorePatterns: ['test'],
moduleFileExtensions: ['js', 'json'],
Expand Down
Loading