[Snyk] Security upgrade webpack-dev-server from 3.11.3 to 5.2.0 #933
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Node.js CI | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
node-version: [12.x, 14.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Create Env File | |
run: touch isCI | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: yarn | |
- run: yarn test | |
commitlint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
# 如果不加以下这行,发起 pr 后触发的 ci 拿到的 commit message 是“Merge ... into ...”而不是提交代码时输入的 commit message。 | |
ref: ${{ github.event.pull_request.head.sha }} | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '12.x' | |
- run: yarn | |
- name: commitlint | |
run: echo $(git log --format=%B -n 1) | npx commitlint --verbose | |
eslint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '12.x' | |
- run: yarn | |
- run: yarn lint |