-
-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (34 loc) · 872 Bytes
/
go-test.yml
File metadata and controls
41 lines (34 loc) · 872 Bytes
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
---
name: Go CI Tests
on: # yamllint disable-line rule:truthy
push:
branches: ["main"]
pull_request:
# The branches below must be a subset of the branches above
branches: ["main"]
workflow_dispatch:
env:
LOG_LEVEL: WARN
jobs:
test:
name: "Go CI Tests"
strategy:
fail-fast: false
matrix:
os: ["windows-2022", "ubuntu-24.04", "macos-14"]
go: ["1.23.x", "1.24.x", "1.25.x"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v5
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: ${{ matrix.go }}
check-latest: false
- run: go version
- name: Build
run: go build -v ./...
- name: Test
run: |
go test -v -coverprofile="coverage.out" ./exercises/...
# go tool cover -func=coverage.out