Skip to content

Commit

Permalink
workflows: update the flag for the test commands (#13)
Browse files Browse the repository at this point in the history
Add -gcflags=-l flag for testing becase github.com/agiledragon/gomonkey is used in unit test.
For detail: https://github.com/agiledragon/gomonkey/blob/v2.10.1/README.md#test-method
  • Loading branch information
Leoyoungxh authored Nov 1, 2023
1 parent df0249a commit 7d3cd64
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/bigcache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ on:
pull_request:
paths:
- 'bigcache/**'
- '.github/workflows/bigcache.yml'
push:
paths:
- 'bigcache/**'
- '.github/workflows/bigcache.yml'
workflow_dispatch:
permissions:
contents: read
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/clickhouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ on:
pull_request:
paths:
- 'clickhouse/**'
- '.github/workflows/clickhouse.yml'
push:
paths:
- 'clickhouse/**'
- '.github/workflows/clickhouse.yml'
workflow_dispatch:
permissions:
contents: read
Expand All @@ -21,7 +23,7 @@ jobs:
- name: Build
run: cd clickhouse && go build -v ./...
- name: Test
run: cd clickhouse && go test -v -coverprofile=coverage.out ./...
run: cd clickhouse && go test -v -coverprofile=coverage.out -gcflags=all=-l ./...
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/cos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ on:
pull_request:
paths:
- 'cos/**'
- '.github/workflows/cos.yml'
push:
paths:
- 'cos/**'
- '.github/workflows/cos.yml'
workflow_dispatch:
permissions:
contents: read
Expand All @@ -21,7 +23,7 @@ jobs:
- name: Build
run: cd cos && go build -v ./...
- name: Test
run: cd cos && go test -v -coverprofile=coverage.out ./...
run: cd cos && go test -v -coverprofile=coverage.out -gcflags=-l ./...
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/goredis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ on:
pull_request:
paths:
- 'goredis/**'
- '.github/workflows/goredis.yml'
push:
paths:
- 'goredis/**'
- '.github/workflows/goredis.yml'
workflow_dispatch:
permissions:
contents: read
Expand All @@ -21,7 +23,7 @@ jobs:
- name: Build
run: cd goredis && go build -v ./...
- name: Test
run: cd goredis && go test -v -coverprofile=coverage.out ./...
run: cd goredis && go test -v -coverprofile=coverage.out -gcflags=all=-l ./...
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/gorm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ on:
pull_request:
paths:
- 'gorm/**'
- '.github/workflows/gorm.yml'
push:
paths:
- 'gorm/**'
- '.github/workflows/gorm.yml'
workflow_dispatch:
permissions:
contents: read
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/hbase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ on:
pull_request:
paths:
- 'hbase/**'
- '.github/workflows/hbase.yml'
push:
paths:
- 'hbase/**'
- '.github/workflows/hbase.yml'
workflow_dispatch:
permissions:
contents: read
Expand All @@ -21,7 +23,7 @@ jobs:
- name: Build
run: cd hbase && go build -v ./...
- name: Test
run: cd hbase && go test -v -coverprofile=coverage.out ./...
run: cd hbase && go test -v -coverprofile=coverage.out -gcflags=all=-l ./...
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/kafka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ on:
pull_request:
paths:
- 'kafka/**'
- '.github/workflows/kafka.yml'
push:
paths:
- 'kafka/**'
- '.github/workflows/kafka.yml'
workflow_dispatch:
permissions:
contents: read
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ on:
pull_request:
paths:
- 'mysql/**'
- '.github/workflows/mysql.yml'
push:
paths:
- 'mysql/**'
- '.github/workflows/mysql.yml'
workflow_dispatch:
permissions:
contents: read
Expand All @@ -21,7 +23,7 @@ jobs:
- name: Build
run: cd mysql && go build -v ./...
- name: Test
run: cd mysql && go test -v -coverprofile=coverage.out ./...
run: cd mysql && go test -v -coverprofile=coverage.out -gcflags=all=-l ./...
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/timer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ on:
pull_request:
paths:
- 'timer/**'
- '.github/workflows/timer.yml'
push:
paths:
- 'timer/**'
- '.github/workflows/timer.yml'
workflow_dispatch:
permissions:
contents: read
Expand Down

0 comments on commit 7d3cd64

Please sign in to comment.