Skip to content

Commit

Permalink
ci: 更新 code review 工作流
Browse files Browse the repository at this point in the history
- 将触发分支从 main 改为 v*.x
- 移除每日定时触发设置
- 删除测试任务,包括测试覆盖报告
  • Loading branch information
cloudcome committed Feb 7, 2025
1 parent 5584cea commit 543009f
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions .github/workflows/code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@ name: code review
on:
push:
branches:
- main
- v*.x
pull_request:
schedule:
# 19:00(UTC) 每天,相当于 03:00(GMT+8)
- cron: '0 19 * * *'

jobs:
lint:
Expand All @@ -19,15 +16,3 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
- run: npm run lint

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-npm
- run: npm run test:coverage
- uses: codacy/codacy-coverage-reporter-action@v1
if: github.actor != 'dependabot[bot]'
with:
api-token: ${{ secrets.CODACY_API_TOKEN }}
coverage-reports: coverage/lcov.info

0 comments on commit 543009f

Please sign in to comment.