Skip to content

Commit

Permalink
chore: ci & lint (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
atian25 authored May 18, 2022
1 parent f4feaae commit 6f04876
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 21 deletions.
12 changes: 0 additions & 12 deletions .eslintrc

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [14, 16]
node-version: [14, 16, 18]
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
Expand All @@ -35,7 +35,7 @@ jobs:
node-version: ${{ matrix.node-version }}

- name: Install Dependencies
run: npm i -g npminstall && npminstall
run: npm i

- name: Continuous Integration
run: npm run ci
Expand Down
34 changes: 27 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@
},
"devDependencies": {
"common-jest-preset": "^1.0.0",
"jest-summary-reporter": "^0.0.2",
"cross-env": "^7.0.3",
"egg-ci": "^1",
"egg-ci": "^1.19.0",
"enquirer": "^2.3.6",
"eslint": "^7",
"eslint-config-egg": "^9",
Expand All @@ -41,21 +42,40 @@
"ci": "npm run lint && npm run cov"
},
"ci": {
"version": "14, 16",
"type": "github"
"version": "14, 16, 18",
"type": "github",
"npminstall": false
},
"jest": {
"preset": "common-jest-preset",
"transform": {},
"testTimeout": 5000,
"reporters": [
"default",
"jest-summary-reporter",
"github-actions"
],
"globalSetup": "./test/jest-global-setup.js",
"setupFilesAfterEnv": [
"<rootDir>/node_modules/common-jest-preset/setup-jest.js"
]
},
"eslintIgnore": [
"coverage",
"dist"
],
"eslintConfig": {
"extends": "eslint-config-egg",
"root": true,
"env": {
"node": true,
"browser": false,
"jest": true
},
"parserOptions": {
"sourceType": "module"
},
"ignorePatterns": [
"dist",
"coverage",
"node_modules"
]
},
"license": "MIT"
}

0 comments on commit 6f04876

Please sign in to comment.