-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (50 loc) · 1.09 KB
/
test.yml
File metadata and controls
64 lines (50 loc) · 1.09 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Test
on:
workflow_dispatch:
workflow_call:
push:
branches:
- main
paths:
- "cmd/**/*"
- "internal/**/*"
- "test/**/*"
- "main.go"
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
env:
GO_VERSION: "1.25.x"
jobs:
test:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-22.04
- ubuntu-24.04
- windows-2022
- windows-2025
- macos-14
- macos-15
runs-on: ${{ matrix.os }}
timeout-minutes: 10
permissions:
contents: read
steps:
- uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: "${{ env.GO_VERSION }}"
- name: Set up Node
uses: actions/setup-node@v6
with:
node-version: "lts/*"
- name: Install templ
run: go install github.com/a-h/templ/cmd/templ@latest
- name: Build
run: |
go generate ./...
go build -v
- name: Run test
run: go test -v ./test/...