-
Notifications
You must be signed in to change notification settings - Fork 9
48 lines (39 loc) · 1015 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Test
on: push
env:
GITHUB_SHA: ${{ github.sha }}
jobs:
test:
strategy:
matrix:
go-version: [ 1.22.2 ]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 10
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup test execution
run: |
go install gotest.tools/gotestsum@latest
go mod tidy
- name: Test
run: |
#!/bin/bash
# Exit on any error
set -e
# --- TEST ---
gotestsum --format=testname --junitfile test-report.xml -- -v --cover -p=1 --timeout 30m ./...
env:
LOG_LEVEL: debug
# - name: Publish Unit Test Results
# uses: EnricoMi/publish-unit-test-result-action@v2
# if: always()
# with:
# files: test-report.xml