-
Notifications
You must be signed in to change notification settings - Fork 615
53 lines (43 loc) · 948 Bytes
/
tests.yml
File metadata and controls
53 lines (43 loc) · 948 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
42
43
44
45
46
47
48
49
50
51
52
53
name: Tests
permissions:
contents: read
on:
push:
branches:
- main
pull_request:
paths-ignore:
- "LICENSE"
- "**.md"
- "examples/*"
- "templates/*"
jobs:
unit:
strategy:
matrix:
go-version:
- "1.25"
- "1.26"
os:
- macos
- ubuntu
- windows
fail-fast: false
name: Unit Tests (${{ matrix.os }}/go-${{ matrix.go-version }})
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-go@v6
with:
go-version: ${{ matrix.go-version }}
- name: Install dependencies
run: make get-deps
- name: Build docker-gen
run: make docker-gen
- name: Check code formatting
if: runner.os != 'Windows'
run: make check-gofmt
- name: Run tests
run: make test