Skip to content

Commit

Permalink
Merge branch 'main' into fast-glob
Browse files Browse the repository at this point in the history
  • Loading branch information
mmkal committed Mar 28, 2024
2 parents 0759755 + e4f7865 commit 7fabcb4
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 189 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,11 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: corepack enable
# rather than use strategy.matrix, install once and run multiple times. Some of the devDependencies refuse to install on lower node versions, but we still want to test on them
- run: pnpm install
- run: pnpm lint
- run: pnpm test -- --coverage
- name: Coverage
uses: codecov/codecov-action@v3
- name: Setup node 14
uses: actions/setup-node@v4
with:
node-version: 14.x
- run: npm test

# pretest depends on del-cli which doesn't support node 12, so run manually
# todo: drop node 12 in next major
- run: npm run pretest
- name: Setup node 12
uses: actions/setup-node@v4
with:
node-version: 12.x
- run: npm test --ignore-scripts
create_tgz:
runs-on: ubuntu-latest
steps:
Expand All @@ -44,7 +29,13 @@ jobs:
test_tgz:
runs-on: ubuntu-latest
needs: [create_tgz]
strategy:
matrix:
node: [20, 18, 16, 14, 12]
steps:
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
with:
Expand Down
7 changes: 7 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
module.exports = [
...require('eslint-plugin-mmkal').recommendedFlatConfigs,
{ignores: ['lib/**', 'examples/**', 'test/generated/**']}, //
{
rules: {
// todo[>=4.0.0] drop lower node version support and remove these
'unicorn/prefer-string-replace-all': 'off',
'unicorn/prefer-at': 'off',
},
},
]
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"@vitest/coverage-v8": "^0.34.6",
"@vitest/ui": "^0.34.6",
"del": "^5.0.0",
"del-cli": "5.1.0",
"eslint": "8.57.0",
"eslint-plugin-mmkal": "0.5.1",
"execa": "^5.1.1",
Expand All @@ -49,13 +48,13 @@
"vitest": "^0.34.6"
},
"scripts": {
"clean": "del-cli lib",
"clean": "rm -rf lib",
"compile": "tsc -p tsconfig.lib.json",
"build": "pnpm clean && pnpm compile",
"eslint": "eslint . --max-warnings 0",
"lint": "pnpm type-check && pnpm eslint",
"prepare": "pnpm build",
"pretest": "del-cli test/generated",
"pretest": "rm -rf test/generated",
"test": "vitest run",
"type-check": "tsc -p ."
},
Expand Down
167 changes: 0 additions & 167 deletions pnpm-lock.yaml

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

Loading

0 comments on commit 7fabcb4

Please sign in to comment.