Skip to content

Commit c683a20

Browse files
PBM run tests on push event, fix docker image for tc (#1076)
* PBM run tests on push event, fix docker image for tc * PBM separate workflow for unittests and codecov
1 parent 780d438 commit c683a20

File tree

4 files changed

+15
-20
lines changed

4 files changed

+15
-20
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ on:
2525
- "packaging/**"
2626
- "version/**"
2727

28+
push:
29+
branches:
30+
- main
31+
- dev
32+
paths-ignore:
33+
- "e2e-tests/**"
34+
- "packaging/**"
35+
- "version/**"
36+
2837
jobs:
2938
test:
3039
runs-on: ubuntu-latest

.github/workflows/codecov.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ name: 'codecov'
33
on:
44
push:
55
branches:
6+
- main
7+
- dev
8+
pull_request:
9+
branches:
10+
- main
611
- dev
712

813
jobs:

.github/workflows/reviewdog.yml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,6 @@
11
name: reviewdog
22
on: [pull_request]
33
jobs:
4-
go-test:
5-
name: runner / go-test
6-
runs-on: ubuntu-latest
7-
steps:
8-
- uses: actions/checkout@v4
9-
- uses: actions/setup-go@v4
10-
with:
11-
go-version: "1.22"
12-
- name: test
13-
run: go test -v ./... -covermode=atomic -coverprofile=cover.out
14-
15-
- name: upload coverage report
16-
uses: codecov/codecov-action@v4
17-
with:
18-
file: cover.out
19-
flags: unittests
20-
fail_ci_if_error: false
21-
token: ${{ secrets.CODECOV_TOKEN }}
22-
234
shellcheck:
245
name: runner / shellcheck
256
runs-on: ubuntu-latest

pbm/oplog/db_tc_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var mClient *mongo.Client
1717

1818
func TestMain(m *testing.M) {
1919
ctx := context.Background()
20-
mongodbContainer, err := mongodb.Run(ctx, "perconalab/percona-server-mongodb:7")
20+
mongodbContainer, err := mongodb.Run(ctx, "perconalab/percona-server-mongodb:7.0")
2121
if err != nil {
2222
fmt.Fprintf(os.Stderr, "error while creating mongo test container: %v", err)
2323
return

0 commit comments

Comments
 (0)