Skip to content

Commit bbbea87

Browse files
committed
move example build step to v2 CI workflow
The example depends on auth/v2, so it should be built and tested as part of the v2 CI workflow.
1 parent 17be5aa commit bbbea87

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

.github/workflows/ci-v2.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ on:
77
paths:
88
- ".github/workflows/ci-v2.yml"
99
- "v2/**"
10+
- "_example/**"
1011
pull_request:
1112
paths:
1213
- ".github/workflows/ci-v2.yml"
1314
- "v2/**"
15+
- "_example/**"
1416

1517
jobs:
1618
build:
@@ -37,6 +39,13 @@ jobs:
3739
with:
3840
mongoDBVersion: "6.0"
3941

42+
- name: build the example
43+
working-directory: _example
44+
run: |
45+
go build -race
46+
env:
47+
TZ: "America/Chicago"
48+
4049
- name: build and test
4150
run: |
4251
go test -timeout=60s -v -race -p 1 -covermode=atomic -coverprofile=$GITHUB_WORKSPACE/profile.cov ./...

.github/workflows/ci.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ on:
77
paths-ignore:
88
- ".github/workflows/ci-v2.yml"
99
- "v2/**"
10+
- "_example/**"
1011
pull_request:
1112
paths-ignore:
1213
- ".github/workflows/ci-v2.yml"
1314
- "v2/**"
15+
- "_example/**"
1416

1517
jobs:
1618
build:
@@ -36,13 +38,6 @@ jobs:
3638
with:
3739
mongoDBVersion: "6.0"
3840

39-
- name: build the example
40-
working-directory: _example
41-
run: |
42-
go build -race
43-
env:
44-
TZ: "America/Chicago"
45-
4641
- name: build and test
4742
run: |
4843
go test -timeout=60s -v -race -p 1 -covermode=atomic -coverprofile=$GITHUB_WORKSPACE/profile.cov ./...

0 commit comments

Comments
 (0)