Skip to content

Commit a35c55c

Browse files
committed
test submodules
1 parent c9dd52a commit a35c55c

File tree

4 files changed

+15
-1
lines changed

4 files changed

+15
-1
lines changed

.github/workflows/go.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
- os: "ubuntu-latest"
2020
go-ver: "1.23"
2121
cover: true
22+
- go-ver: "1.23"
23+
submodules: true
2224

2325
runs-on: ${{ matrix.os }}
2426
steps:
@@ -43,6 +45,14 @@ jobs:
4345
- name: Test Race
4446
run: go test -race -v ./...
4547

48+
- name: Test Submodules
49+
run: find . -name go.mod | while read f; do go -C $(dirname $f) test ./...; done
50+
if: ${{ matrix.submodules }}
51+
52+
- name: Test Race Submodules
53+
run: find . -name go.mod | while read f; do go -C $(dirname $f) test -race ./...; done
54+
if: ${{ matrix.submodules }}
55+
4656
- name: Upload coverage reports to Codecov
4757
uses: codecov/codecov-action@v3
4858
if: ${{ matrix.cover }}

cmd/tlog/go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ module tlog.app/go/tlog/cmd/tlog
22

33
go 1.22.0
44

5+
toolchain go1.23.0
6+
57
replace (
68
tlog.app/go/tlog => ../../
79
tlog.app/go/tlog/ext/tlclick => ../../ext/tlclick/

ext/tlclick/go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ module tlog.app/go/tlog/ext/tlclick
22

33
go 1.22.0
44

5+
toolchain go1.23.0
6+
57
replace tlog.app/go/tlog => ../../
68

79
require (

ext/tlgin/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module tlog.app/go/tlog/ext/tlgin
22

3-
go 1.22.0
3+
go 1.22
44

55
replace tlog.app/go/tlog => ../../
66

0 commit comments

Comments
 (0)