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

ci: remove @lerna-lite/exec #604

Merged
merged 1 commit into from
Feb 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)}}`)
7 changes: 4 additions & 3 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,21 @@ 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: pnpm --filter "${{ matrix.package }}" exec c8 report --reporter=lcov --report-dir=coverage
- name: Upload
uses: coverallsapp/github-action@main
with:
flag-name: ${{ matrix.package }}
parallel: true
allow-empty: true
github-token: ${{ secrets.GITHUB_TOKEN }}
base-path: $(pnpm --filter "${{ matrix.package }}" exec pwd)

finish:
needs: test
runs-on: ubuntu-latest
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