Skip to content
Open
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
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Release checks

on:
pull_request:
merge_group:
types: [checks_requested]
branches: [main]
push:
branches: [main]
workflow_dispatch:
Expand Down
16 changes: 15 additions & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: CodeQL

on:
pull_request:
merge_group:
types: [checks_requested]
branches: [main]
push:
branches: [main]
workflow_dispatch:
Expand Down Expand Up @@ -36,11 +39,22 @@ jobs:
languages: ${{ matrix.language }}
build-mode: none
queries: security-extended
- name: Analyze and upload results / 扫描并上传结果
- name: Analyze and record results / 扫描并记录结果
uses: github/codeql-action/analyze@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3
with:
category: /language:${{ matrix.language }}
output: ${{ runner.temp }}/codeql-results
# Code scanning does not report its PR alert check on merge groups.
upload: ${{ github.event_name == 'merge_group' && 'never' || 'always' }}
wait-for-processing: true
- name: Save queue scan evidence / 保存队列扫描证据
if: github.event_name == 'merge_group'
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: codeql-merge-group-${{ matrix.language }}-${{ github.run_attempt }}
path: ${{ runner.temp }}/codeql-results/*.sarif
retention-days: 14
if-no-files-found: error

# Stable required-check candidate, independent of docs-only release skips.
checks:
Expand Down
24 changes: 16 additions & 8 deletions .github/workflows/dsh-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,11 @@ name: DSH plugin checks

on:
pull_request:
paths:
- 'plugins/deepseek-harness/**'
- '.github/workflows/dsh-plugin.yml'
- '.nvmrc'
merge_group:
types: [checks_requested]
branches: [main]
push:
branches: [main]
paths:
- 'plugins/deepseek-harness/**'
- '.github/workflows/dsh-plugin.yml'
- '.nvmrc'

permissions:
contents: read
Expand All @@ -26,14 +21,27 @@ jobs:
timeout-minutes: 15
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
fetch-depth: 0
persist-credentials: false
- id: scope
name: Select plugin scope / 判断插件检查范围
env:
PR_BASE_SHA: ${{ github.event.pull_request.base.sha }}
MERGE_GROUP_BASE_SHA: ${{ github.event.merge_group.base_sha }}
PUSH_BASE_SHA: ${{ github.event.before }}
run: python3 scripts/ci/select_checks.py --dsh
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
if: steps.scope.outputs.run-dsh != 'false'
with:
node-version-file: .nvmrc
cache: npm
cache-dependency-path: plugins/deepseek-harness/package-lock.json
- name: Install DSH plugin dependencies
if: steps.scope.outputs.run-dsh != 'false'
working-directory: plugins/deepseek-harness
run: npm ci
- name: DSH plugin tests
if: steps.scope.outputs.run-dsh != 'false'
working-directory: plugins/deepseek-harness
run: npm test
6 changes: 5 additions & 1 deletion .github/workflows/release-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
fetch-depth: ${{ (github.event_name == 'pull_request' || (github.event_name == 'push' && github.event.before && github.event.before != '0000000000000000000000000000000000000000')) && '0' || '1' }}
fetch-depth: ${{ (github.event_name == 'pull_request' || github.event_name == 'merge_group' || (github.event_name == 'push' && github.event.before && github.event.before != '0000000000000000000000000000000000000000')) && '0' || '1' }}
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: '3.12'
Expand All @@ -42,10 +42,13 @@ jobs:
- name: Check static configuration
env:
PR_BASE_SHA: ${{ github.event.pull_request.base.sha }}
MERGE_GROUP_BASE_SHA: ${{ github.event.merge_group.base_sha }}
PUSH_BASE_SHA: ${{ github.event.before }}
run: |
if [ "$GITHUB_EVENT_NAME" = pull_request ]; then
python -m pre_commit run --from-ref "$PR_BASE_SHA" --to-ref HEAD
elif [ "$GITHUB_EVENT_NAME" = merge_group ] && [ -n "$MERGE_GROUP_BASE_SHA" ]; then
python -m pre_commit run --from-ref "$MERGE_GROUP_BASE_SHA" --to-ref HEAD
elif [ "$GITHUB_EVENT_NAME" = push ] && [ -n "$PUSH_BASE_SHA" ] && [ "$PUSH_BASE_SHA" != 0000000000000000000000000000000000000000 ]; then
python -m pre_commit run --from-ref "$PUSH_BASE_SHA" --to-ref HEAD
else
Expand All @@ -55,6 +58,7 @@ jobs:
name: Select check scope / 判断检查范围
env:
PR_BASE_SHA: ${{ github.event.pull_request.base.sha }}
MERGE_GROUP_BASE_SHA: ${{ github.event.merge_group.base_sha }}
run: python scripts/ci/select_checks.py

python:
Expand Down
Loading
Loading