Skip to content

Commit 47d1bdb

Browse files
committed
chore: simplify workflow
1 parent 32f9614 commit 47d1bdb

File tree

1 file changed

+5
-24
lines changed

1 file changed

+5
-24
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ jobs:
104104
only-new-issues: true
105105
install-mode: goinstall
106106

107-
test-go-mod-version:
107+
test-go-mod:
108108
needs: [ build ]
109109
strategy:
110110
matrix:
@@ -113,6 +113,9 @@ jobs:
113113
- ubuntu-24.04-arm
114114
- macos-latest
115115
- windows-latest
116+
wd:
117+
- sample-go-mod
118+
- sample-go-tool
116119
runs-on: ${{ matrix.os }}
117120
permissions:
118121
contents: read
@@ -123,27 +126,5 @@ jobs:
123126
go-version: oldstable
124127
- uses: ./
125128
with:
126-
working-directory: sample-go-mod
127-
args: --timeout=5m --issues-exit-code=0 ./...
128-
129-
test-go-tool-version:
130-
needs: [ build ]
131-
strategy:
132-
matrix:
133-
os:
134-
- ubuntu-latest
135-
- ubuntu-24.04-arm
136-
- macos-latest
137-
- windows-latest
138-
runs-on: ${{ matrix.os }}
139-
permissions:
140-
contents: read
141-
steps:
142-
- uses: actions/checkout@v4
143-
- uses: actions/setup-go@v5
144-
with:
145-
go-version: stable
146-
- uses: ./
147-
with:
148-
working-directory: sample-go-tool
129+
working-directory: ${{ matrix.wd }}
149130
args: --timeout=5m --issues-exit-code=0 ./...

0 commit comments

Comments
 (0)