Skip to content

Commit

Permalink
ci: remove @lerna-lite/exec
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Feb 18, 2025
1 parent 0291008 commit fe6398b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/get-matrix.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ const packagesPath = join(__dirname, '../../packages')

for (const packagePath of await readdir(packagesPath)) {
const pkg = join(packagesPath, packagePath, 'package.json')
const { name } = JSON.parse(await readFile(pkg))
packages.push(name)
const { name, scripts } = JSON.parse(await readFile(pkg))
if (scripts && scripts.test && scripts.test !== 'exit 0') {
packages.push(name)
}
}

console.log(`{"package":${JSON.stringify(packages)}}`)
5 changes: 2 additions & 3 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,18 @@ jobs:
version: latest
run_install: true
- name: Test
run: pnpm run test --scope "${{ matrix.package }}"
run: pnpm --filter "${{ matrix.package }}" exec c8 pnpm test
env:
PROXY_USERNAME: ${{ secrets.PROXY_USERNAME }}
PROXY_PASSWORD: ${{ secrets.PROXY_PASSWORD }}
PROXY_HOST: ${{ secrets.PROXY_HOST }}
- name: Coverage
run: pnpm run coverage
run: mkdir -p coverage && pnpm --filter "${{ matrix.package }}" exec c8 report --reporter=text-lcov > coverage/lcov.info
- name: Upload
uses: coverallsapp/github-action@main
with:
flag-name: ${{ matrix.package }}
parallel: true
allow-empty: true
github-token: ${{ secrets.GITHUB_TOKEN }}
finish:
needs: test
Expand Down
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@
"@commitlint/config-conventional": "latest",
"@ksmithut/prettier-standard": "latest",
"@lerna-lite/cli": "latest",
"@lerna-lite/exec": "latest",
"@lerna-lite/publish": "latest",
"browser-sync": "latest",
"c8": "latest",
Expand All @@ -115,19 +114,18 @@
},
"scripts": {
"build": "gulp build",
"clean": "pnpm -r exec -- rm -rf node_modules",
"clean": "pnpm --recursive exec -- rm -rf node_modules",
"contributors": "pnpm run contributors:add && pnpm run contributors:commit",
"contributors:add": "pnpm --recursive --parallel exec -- finepack",
"contributors:commit": "(git-authors-cli && finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true",
"coverage": "c8 report --reporter=text-lcov > coverage/lcov.info",
"dev": "concurrently \"gulp\" \"npm run dev:server\"",
"dev:server": "browser-sync start --server --files \"index.html, README.md, static/**/*.(css|js)\"",
"lint": "standard",
"postinstall": "node node_modules/puppeteer/install.mjs",
"prerelease": "pnpm run update:check",
"pretest": "pnpm run lint",
"release": "lerna publish --yes --sort --conventional-commits -m \"chore(release): %s\" --create-release github",
"test": "c8 lerna exec pnpm run test",
"test": "c8 pnpm --recursive --sequential test",
"update": "pnpm --recursive --parallel exec ncu -u",
"update:check": "pnpm --recursive --parallel exec ncu -errorLevel 2"
},
Expand Down

0 comments on commit fe6398b

Please sign in to comment.