File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # This workflow will build a golang project
2- # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
3-
41name : Run
52
63on :
@@ -16,34 +13,21 @@ jobs:
1613 matrix :
1714 go : [ '1.23', '1' ]
1815 runs-on : ubuntu-latest
19- steps :
20- - uses : actions/checkout@v4
21-
22- - name : Set up Go
23- uses : actions/setup-go@v5
24- with :
25- go-version : ${{ matrix.go }}
26-
27- - name : Vet
28- run : go vet -v ./...
29-
30- - name : Test
31- run : go test -v ./...
32-
33- adapters :
34- runs-on : ubuntu-latest
3516 steps :
3617 - uses : actions/checkout@v4
3718
3819 - name : Set up Go
3920 uses : actions/setup-go@v5
4021 with :
41- go-version : ' 1.23 '
22+ go-version : ${{ matrix.go }}
4223
4324 - name : Vet
44- run : find ./adapters -type f -name "go.mod" -exec dirname {} \; | while read -r dir; do (cd "$dir" && go vet ./...) done
25+ run : go vet -v ./...
4526
46- _examples :
27+ - name : Test
28+ run : go test -v ./...
29+
30+ adapters_and_examples :
4731 runs-on : ubuntu-latest
4832 steps :
4933 - uses : actions/checkout@v4
5337 with :
5438 go-version : ' 1.23'
5539
56- - name : Vet
57- run : find ./_examples -type f -name "go.mod" -exec dirname {} \; | while read -r dir; do (cd "$dir" && go vet ./...) done
40+ - name : Vet Adapters
41+ run : |
42+ find ./adapters -type f -name "go.mod" -exec dirname {} \; | while read -r dir; do
43+ echo "Running go vet in $dir"
44+ (cd "$dir" && go vet ./...)
45+ done
46+
47+ - name : Vet Examples
48+ run : |
49+ find ./_examples -type f -name "go.mod" -exec dirname {} \; | while read -r dir; do
50+ echo "Running go vet in $dir"
51+ (cd "$dir" && go vet ./...)
52+ done
You can’t perform that action at this time.
0 commit comments