-
-
Notifications
You must be signed in to change notification settings - Fork 376
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
71 additions
and
189 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: linter | ||
|
||
on: [push] | ||
|
||
env: | ||
NODE_VERSION: 10.x | ||
|
||
jobs: | ||
linter: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ env.NODE_VERSION }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
- name: Use Npm@latest | ||
run: npm i -g npm | ||
- name: Print versions | ||
run: | | ||
node -v | ||
npm -v | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: 'Run lint' | ||
run: npm run lint | ||
- name: 'Run NPM audit' | ||
run: npm run security | ||
# - name: Run lint commit message | ||
# run: npm run commitlint |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: test | ||
|
||
on: [push] | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [macos-latest, windows-latest, ubuntu-latest] | ||
node-version: [13.x, 12.x, 10.x] | ||
webpack-version: [next, 4] | ||
exclude: | ||
- node-version: 13.x | ||
webpack-version: 4 | ||
- node-version: 12.x | ||
webpack-version: 4 | ||
|
||
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 Npm@latest | ||
run: npm i -g npm | ||
- name: Print versions | ||
run: | | ||
node -v | ||
npm -v | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Install webpack@${{ matrix.webpack-version }} | ||
run: npm i webpack@${{ matrix.webpack-version }} | ||
- name: Run tests with coverage | ||
run: npm run test:coverage -- --ci --reporters="default" --reporters="jest-junit" | ||
- name: Submit coverage data to codecov | ||
uses: codecov/codecov-action@v1.0.6 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
file: '**/junit.xml' |
This file was deleted.
Oops, something went wrong.