-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (43 loc) · 923 Bytes
/
go.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
49
50
name: Go build and test
on:
push:
branches:
- '**'
paths:
- "**/*.go"
- "**/*.mod"
- "**/*.sum"
- "**/Makefile"
- "!**/*.md"
pull_request:
branches: [ main ]
workflow_dispatch:
inputs:
jobs:
build:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
strategy:
matrix:
os: [ macos-latest, ubuntu-latest, windows-latest ]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Skip duplicate actions
uses: fkirc/skip-duplicate-actions@v5.3.1
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.24'
check-latest: true
cache-dependency-path: go.mod
- name: Test application
run: |
make tidy
make test
- name: Build application
run: |
make build