Skip to content

Commit e932758

Browse files
committed
Add tests results
1 parent 5ec1970 commit e932758

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,12 @@ jobs:
5050

5151
- name: Test
5252
run: |
53-
make test
53+
make test-ci
54+
- uses: actions/upload-artifact@v4
55+
if: ${{ !cancelled() }}
56+
with:
57+
name: test-results
58+
path: testresults.json
5459

5560
- name: Build
5661
run: |

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ fail2ban-dashboard
55
generate*
66
cached*
77
.lint_result
8-
__debug*
8+
__debug*
9+
testresults.json

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ test:
2323
@echo "Running tests"
2424
go test ./...
2525

26+
test-ci:
27+
@echo "Running tests for CI/CD"
28+
go test ./... -json > testresults.json
29+
2630
# Clean build artifacts
2731
clean:
2832
@echo "Cleaning build artifacts"

0 commit comments

Comments
 (0)