-
Notifications
You must be signed in to change notification settings - Fork 100
42 lines (36 loc) · 1.12 KB
/
makefile.yml
File metadata and controls
42 lines (36 loc) · 1.12 KB
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
name: Unit Tests
on:
pull_request: {}
push: {}
# Prevent multiple runs from the same PR/branch from overlapping
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build
runs-on: ubuntu-latest
# Added a job-level timeout as a safety net
timeout-minutes: 15
steps:
- name: Check out code
uses: actions/checkout@v4 # Upgraded
- name: Set up Go
uses: actions/setup-go@v5 # Upgraded
with:
go-version: '1.24.13'
cache: true # Built-in caching for faster runs
- name: Install dependencies
run: go mod download
- name: Run Unit Tests
env:
GOMEMLIMIT: 6GiB
# Added -v to see which specific test hangs if it fails again
run: |
go test -v -p 1 -covermode=count -coverprofile=profile.cov ./pkg/...
- name: Send coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
go install github.com/mattn/goveralls@latest
$(go env GOPATH)/bin/goveralls -coverprofile=profile.cov -service=github