Skip to content

Commit

Permalink
Merge pull request #23 from Comandeer/t/21
Browse files Browse the repository at this point in the history
  • Loading branch information
Comandeer authored Jul 28, 2023
2 parents f96f77f + c55bbe1 commit 92d033f
Show file tree
Hide file tree
Showing 3 changed files with 133 additions and 8 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,21 @@ jobs:
node: [ '16', '18', '20' ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Git checkout
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: npm ci
- run: npm test
- uses: codecov/codecov-action@v3
- name: Install dependencies
run: npm ci
- name: Lint code
run: npm run lint
- name: Run tests
run: npm test
- name: Upload coverage data to Codecov
uses: codecov/codecov-action@v3
- name: Build package
run: npm run build
- name: Lint package
run: npm run lint-package
114 changes: 114 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@
},
"files": [
"bin",
"dist",
"esm-loader-manager.d.ts"
"dist"
],
"engines": {
"node": ">=16.12.0"
},
"engineStrict": true,
"scripts": {
"lint": "eslint \"src/\" \"tests/\"",
"lint-package": "publint",
"pretest": "npm run build",
"test": "c8 ava",
"build": "rlb",
"version": "npm test && npm run build && git add -f dist/",
"postversion": "git rm -r --cached dist/ && git commit -m \"chore(dist): clean after release [ci skip]\" && git push origin && git push origin --tags",
"version": "npm test && npm run build && npm run lint-package && git add -f bin/ dist/",
"postversion": "git rm -r --cached bin/ dist/ && git commit -m \"chore(dist): clean after release [ci skip]\" && git push origin && git push origin --tags",
"prepare": "husky install"
},
"repository": {
Expand Down Expand Up @@ -79,6 +79,7 @@
"eslint": "^8.46.0",
"husky": "^8.0.3",
"mock-fs": "^5.2.0",
"publint": "^0.2.0",
"tslib": "^2.6.1",
"tsx": "^3.12.7",
"typescript": "^5.1.6"
Expand Down

0 comments on commit 92d033f

Please sign in to comment.