ci:codecov-action 使用v3

This commit is contained in:
rulego-team
2025-08-04 07:42:25 +08:00
parent a47748d4c7
commit de4d47d87d
+5 -82
View File
@@ -45,87 +45,10 @@ jobs:
- name: Run tests with coverage
if: matrix.go-version == '1.21'
run: go test -v -race -coverprofile=coverage.out -covermode=atomic -timeout 300s ./...
run: go test -v -race -coverprofile="codecov.report" -covermode=atomic -timeout 300s ./...
- name: Upload coverage to Codecov
- name: Upload coverage reports to Codecov
if: matrix.go-version == '1.21'
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
case-expression-tests:
name: CASE Expression Tests
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Check out code
uses: actions/checkout@v4
- name: Cache Go modules
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-1.21-${{ hashFiles('**/go.sum') }}
- name: Download dependencies
run: go mod download
- name: Run CASE Expression Parsing Tests
run: go test -v -run TestCaseExpressionParsing -timeout 15s
- name: Run CASE Expression Comprehensive Tests
run: go test -v -run TestCaseExpressionComprehensive -timeout 15s
- name: Run CASE Expression Field Extraction Tests
run: go test -v -run TestCaseExpressionFieldExtraction -timeout 15s
- name: Run CASE Expression in SQL Tests
run: go test -v -run TestCaseExpressionInSQL -timeout 15s
- name: Run CASE Expression Aggregation Tests (with known limitations)
run: go test -v -run "TestCaseExpressionInAggregation|TestComplexCaseExpressionsInAggregation" -timeout 20s
- name: Run CASE Expression Edge Cases
run: go test -v -run TestCaseExpressionEdgeCases -timeout 15s
# lint:
# name: Lint
# runs-on: ubuntu-latest
#
# steps:
# - name: Set up Go
# uses: actions/setup-go@v4
# with:
# go-version: '1.21'
#
# - name: Check out code
# uses: actions/checkout@v4
#
# - name: Run golangci-lint
# uses: golangci/golangci-lint-action@v3
# with:
# version: latest
# args: --timeout=5m
#
# security:
# name: Security Scan
# runs-on: ubuntu-latest
#
# steps:
# - name: Set up Go
# uses: actions/setup-go@v4
# with:
# go-version: '1.21'
#
# - name: Check out code
# uses: actions/checkout@v4
#
# - name: Run Gosec Security Scanner
# uses: securecodewarrior/github-action-gosec@v1
# with:
# args: './...'
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}