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: meta tweak #291

Merged
merged 11 commits into from
Feb 2, 2023
12 changes: 6 additions & 6 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ jobs:
fail-fast: false
matrix:
os:
- "ubuntu-latest"
- 'ubuntu-latest'
# - "macos-latest"
# - "windows-latest"
node_version:
- "18"
- "16"
- "14"
- "12"
- '18'
- '16'
- '14'
- '12'
name: Node.js ${{ matrix.node_version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -39,7 +39,7 @@ jobs:
run: npm run lint

- name: Check package.json
run: npm run sort-package-json
run: npm run sort-package-json -- --check
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch.

NPM is making things weird, previously -- is not needed, already run into this problem several times.


- name: Run Tests
run: npm run test-coverage
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
"lint": "eslint .",
"prepare": "husky install",
"semantic-release": "semantic-release",
"sort-package-json": "node cli.js package.json --check",
"sort-package-json": "node cli.js \"package.json\"",
"test": "ava && dtslint --localTs node_modules/typescript/lib",
"test-coverage": "nyc ava",
"update-snapshot": "ava -u && node cli.js package.json"
"update-snapshots": "ava --update-snapshots && node cli.js \"package.json\" --quiet"
},
"commitlint": {
"extends": [
Expand Down