Skip to content

Commit 4014f15

Browse files
committed
test submodules
1 parent c9dd52a commit 4014f15

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

.github/workflows/go.yml

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

2324
runs-on: ${{ matrix.os }}
2425
steps:
@@ -43,6 +44,14 @@ jobs:
4344
- name: Test Race
4445
run: go test -race -v ./...
4546

47+
- name: Test Submodules
48+
run: find . -name go.mod | while read f; do go -C $(dirname $f) test ./...; done
49+
if: ${{ matrix.submodules }}
50+
51+
- name: Test Race Submodules
52+
run: find . -name go.mod | while read f; do go -C $(dirname $f) test -race ./...; done
53+
if: ${{ matrix.submodules }}
54+
4655
- name: Upload coverage reports to Codecov
4756
uses: codecov/codecov-action@v3
4857
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)