Skip to content

Commit 8bb4910

Browse files
committed
Simplify GitHub workflow by using make vet target
Removes conditional logic in workflow step by utilizing the existing 'vet' make target instead of inline shell conditionals. Addresses: #129 (comment)
1 parent 46bf236 commit 8bb4910

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ jobs:
1818
artifact-name: "unit-test-results"
1919
- job-name: "Go Vet"
2020
make-target: "vet"
21-
artifact-name: "vet-results"
2221

2322
steps:
2423
- name: Checkout code
@@ -35,12 +34,7 @@ jobs:
3534
run: go mod download
3635

3736
- name: Run ${{ matrix.job-name }}
38-
run: |
39-
if [ "${{ matrix.make-target }}" = "vet" ]; then
40-
go vet ./...
41-
else
42-
make ${{ matrix.make-target }}
43-
fi
37+
run: make ${{ matrix.make-target }}
4438

4539
- name: Upload test results
4640
if: always() && matrix.make-target != 'vet'

0 commit comments

Comments
 (0)