Skip to content
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
9 changes: 9 additions & 0 deletions .github/actions/ci-cli-coverage-merge/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,22 @@ runs:
--coverage \
--coverage.reporter=text-summary \
--coverage.reporter=json-summary \
--coverage.reporter=cobertura \
--coverage.reportsDirectory=coverage/cli \
--coverage.include="bin/**/*.js" \
--coverage.include="dist/lib/**/*.js" \
--coverage.exclude="test/**/*.js" \
--coverage.exclude="test/**/*.ts"
npx tsx scripts/check-coverage-ratchet.ts coverage/cli/coverage-summary.json ci/coverage-threshold-cli.json "CLI coverage"

- name: Upload CLI coverage report
if: ${{ always() && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }}
uses: actions/upload-code-coverage@abb5995db9e0199b0e2bb9dbd136fce4cb1ec4d3 # v1
with:
file: coverage/cli/cobertura-coverage.xml
language: TypeScript
label: code-coverage/cli

Comment thread
coderabbitai[bot] marked this conversation as resolved.
- name: Upload CLI Vitest timing report
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
Expand Down
9 changes: 9 additions & 0 deletions .github/actions/ci-plugin-coverage/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,16 @@ runs:
--coverage \
--coverage.reporter=text-summary \
--coverage.reporter=json-summary \
--coverage.reporter=cobertura \
--coverage.reportsDirectory=coverage/plugin \
--coverage.include="nemoclaw/src/**/*.ts" \
--coverage.exclude="**/*.test.ts"
npx tsx scripts/check-coverage-ratchet.ts coverage/plugin/coverage-summary.json ci/coverage-threshold-plugin.json "Plugin coverage"

- name: Upload plugin coverage report
if: ${{ always() && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }}
uses: actions/upload-code-coverage@abb5995db9e0199b0e2bb9dbd136fce4cb1ec4d3 # v1
with:
file: coverage/plugin/cobertura-coverage.xml
language: TypeScript
label: code-coverage/plugin
9 changes: 9 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ jobs:
cli-tests:
needs: cli-test-shards
if: ${{ always() }}
permissions:
actions: read
code-quality: write
contents: read
pull-requests: read
Comment thread
coderabbitai[bot] marked this conversation as resolved.
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
Expand All @@ -102,6 +107,10 @@ jobs:
shard-count: "5"

plugin-tests:
permissions:
code-quality: write
contents: read
pull-requests: read
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,11 @@ jobs:
- changes
- cli-test-shards
if: ${{ always() && needs.changes.outputs.code == 'true' }}
permissions:
actions: read
code-quality: write
contents: read
pull-requests: read
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
Expand Down Expand Up @@ -273,6 +278,10 @@ jobs:
plugin-tests:
needs: changes
if: needs.changes.outputs.code == 'true'
permissions:
code-quality: write
contents: read
pull-requests: read
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
Expand Down
Loading