Skip to content

Commit db484d7

Browse files
committed
fix(ci): use working-directory for template Bazel commands
- Set working-directory to each template's root directory - Change from absolute paths (//kotlin/spring/...) to relative (//...) - Fix 'not within a workspace' error in CI
1 parent 2195064 commit db484d7

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/template-check.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,12 @@ jobs:
4343
repository-cache: true
4444

4545
- name: Verify Kotlin Spring Template Builds
46-
run: bazel build //kotlin/spring/...
46+
run: bazel build //...
47+
working-directory: kotlin/spring
4748

4849
- name: Verify Kotlin Spring Template Tests
49-
run: bazel test //kotlin/spring/...
50+
run: bazel test //...
51+
working-directory: kotlin/spring
5052

5153
verify-go-gin:
5254
needs: detect-changes
@@ -65,7 +67,9 @@ jobs:
6567
repository-cache: true
6668

6769
- name: Verify Go Gin Template Builds
68-
run: bazel build //go/gin/...
70+
run: bazel build //...
71+
working-directory: go/gin
6972

7073
- name: Verify Go Gin Template Tests
71-
run: bazel test //go/gin/...
74+
run: bazel test //...
75+
working-directory: go/gin

0 commit comments

Comments
 (0)