ci(deps): bump codecov/codecov-action from 5 to 7

Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 5 to 7.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v5...v7)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
dependabot[bot]
2026-06-19 11:25:43 +00:00
committed by GitHub
parent d649b03c3b
commit eff4f86fd6
+65 -65
View File
@@ -1,65 +1,65 @@
name: CI name: CI
on: on:
push: push:
branches: branches:
- '**' - '**'
tags-ignore: tags-ignore:
- '**' - '**'
permissions: permissions:
contents: read contents: read
jobs: jobs:
frontend: frontend:
name: 前端检查 (格式 + 类型 + Lint + 测试 + 覆盖率) name: 前端检查 (格式 + 类型 + Lint + 测试 + 覆盖率)
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
with: with:
node-version: '20' node-version: '20'
cache: 'npm' cache: 'npm'
- run: npm ci - run: npm ci
- name: Prettier 格式检查 - name: Prettier 格式检查
run: npx prettier --check "src/**/*.{ts,tsx}" "tests/**/*.{ts,tsx}" "e2e/**/*.ts" run: npx prettier --check "src/**/*.{ts,tsx}" "tests/**/*.{ts,tsx}" "e2e/**/*.ts"
- name: TypeScript 类型检查 - name: TypeScript 类型检查
run: npx tsc -b --noEmit run: npx tsc -b --noEmit
- name: ESLint - name: ESLint
run: npx eslint src/ tests/ e2e/ run: npx eslint src/ tests/ e2e/
- name: Vitest 测试 + 覆盖率 - name: Vitest 测试 + 覆盖率
run: npx vitest run --coverage run: npx vitest run --coverage
- name: 上传覆盖率到 Codecov - name: 上传覆盖率到 Codecov
uses: codecov/codecov-action@v5 uses: codecov/codecov-action@v7
with: with:
files: ./coverage/cobertura-coverage.xml files: ./coverage/cobertura-coverage.xml
flags: frontend flags: frontend
env: env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
rust: rust:
name: Rust 检查 (格式 + Check + Clippy + Test) name: Rust 检查 (格式 + Check + Clippy + Test)
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
- name: Cargo Format Check - name: Cargo Format Check
run: cargo fmt --check run: cargo fmt --check
- name: Cargo Check - name: Cargo Check
run: cargo check run: cargo check
- name: Cargo Clippy - name: Cargo Clippy
run: cargo clippy -- -D warnings run: cargo clippy -- -D warnings
- name: Cargo Test - name: Cargo Test
run: cargo test run: cargo test