Skip to content

Commit d210704

Browse files
committed
fix codecov flags
1 parent f897d10 commit d210704

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

.github/workflows/tests.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
file: ./unit.txt
4848
flags: unit,${{ matrix.os }},${{ matrix.go-version }}
4949
name: unit
50-
e2e-table:
50+
table:
5151
strategy:
5252
matrix:
5353
go-version: [1.17.x]
@@ -80,17 +80,17 @@ jobs:
8080
- name: Checkout code
8181
uses: actions/checkout@v2
8282
- name: Test
83-
run: go test -race -coverpkg=./... -coverprofile e2e-table.txt -covermode atomic ./test/table_test.go
83+
run: go test -race -coverpkg=./... -coverprofile table.txt -covermode atomic ./test/table_test.go
8484
- name: Clear report
85-
run: sed -i '/testutil\|trace\|test/d' e2e-table.txt
85+
run: sed -i '/testutil\|trace\|test/d' table.txt
8686
shell: bash
8787
- name: Upload coverage to Codecov
8888
uses: codecov/codecov-action@v2
8989
with:
90-
file: ./e2e-table.txt
91-
flags: e2e-table,e2e,integration,${{ matrix.os }},${{ matrix.go-version }}
92-
name: e2e-table
93-
e2e-ratelimiter:
90+
file: ./table.txt
91+
flags: table,e2e,integration,${{ matrix.os }},${{ matrix.go-version }}
92+
name: table
93+
ratelimiter:
9494
strategy:
9595
matrix:
9696
go-version: [1.17.x]
@@ -123,17 +123,17 @@ jobs:
123123
- name: Checkout code
124124
uses: actions/checkout@v2
125125
- name: Test
126-
run: go test -race -coverpkg=./... -coverprofile e2e-ratelimiter.txt -covermode atomic ./test/ratelimiter_test.go
126+
run: go test -race -coverpkg=./... -coverprofile ratelimiter.txt -covermode atomic ./test/ratelimiter_test.go
127127
- name: Clear report
128-
run: sed -i '/testutil\|trace\|test/d' e2e-ratelimiter.txt
128+
run: sed -i '/testutil\|trace\|test/d' ratelimiter.txt
129129
shell: bash
130130
- name: Upload coverage to Codecov
131131
uses: codecov/codecov-action@v2
132132
with:
133-
file: ./e2e-ratelimiter.txt
134-
flags: e2e-ratelimiter,e2e,integration,${{ matrix.os }},${{ matrix.go-version }}
135-
name: e2e-ratelimiter
136-
e2e-scripting:
133+
file: ./ratelimiter.txt
134+
flags: ratelimiter,e2e,integration,${{ matrix.os }},${{ matrix.go-version }}
135+
name: ratelimiter
136+
scripting:
137137
strategy:
138138
matrix:
139139
go-version: [1.17.x]
@@ -166,13 +166,13 @@ jobs:
166166
- name: Checkout code
167167
uses: actions/checkout@v2
168168
- name: Test
169-
run: go test -race -coverpkg=./... -coverprofile e2e-scripting.txt -covermode atomic ./test/scripting_test.go
169+
run: go test -race -coverpkg=./... -coverprofile scripting.txt -covermode atomic ./test/scripting_test.go
170170
- name: Clear report
171-
run: sed -i '/testutil\|trace\|test/d' e2e-scripting.txt
171+
run: sed -i '/testutil\|trace\|test/d' scripting.txt
172172
shell: bash
173173
- name: Upload coverage to Codecov
174174
uses: codecov/codecov-action@v2
175175
with:
176-
file: ./e2e-scripting.txt
177-
flags: e2e-scripting,e2e,integration,${{ matrix.os }},${{ matrix.go-version }}
178-
name: e2e-scripting
176+
file: ./scripting.txt
177+
flags: scripting,e2e,integration,${{ matrix.os }},${{ matrix.go-version }}
178+
name: scripting

0 commit comments

Comments
 (0)