File tree Expand file tree Collapse file tree 2 files changed +20
-10
lines changed Expand file tree Collapse file tree 2 files changed +20
-10
lines changed Original file line number Diff line number Diff line change 1
1
name : ci
2
2
3
- on :
4
- pull_request :
5
- branches : ' *'
6
- push :
7
- branches :
8
- - master
9
- - main
10
- - ' release-*'
3
+ # Default to 'contents: read', which grants actions to read commits.
4
+ #
5
+ # If any permission is set, any permission not included in the list is
6
+ # implicitly set to "none".
7
+ #
8
+ # see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
9
+ permissions :
10
+ contents : read
11
+
12
+ on : [push, pull_request]
11
13
12
14
jobs :
13
15
test :
14
16
strategy :
15
17
matrix :
16
18
os : [ubuntu, macos, windows]
17
- golang : ['1.23', '1.24']
19
+ # test oldest supported version and currently maintained Go versions.
20
+ golang : ['1.23.x', 'oldstable', 'stable']
18
21
# currently, we cannot run non-x86_64 machines on GitHub Actions cloud env.
19
22
runs-on : ${{ matrix.os }}-latest
23
+ timeout-minutes : 10 # guardrails timeout for the whole job
24
+ env :
25
+ # Setting GOTOOLCHAIN to local tells go
26
+ # to use the bundled Go version rather
27
+ # than fetching the toolchain according to
28
+ # toolchain directive found in go.mod.
29
+ GOTOOLCHAIN : local
20
30
name : CI golang ${{ matrix.golang }} on ${{ matrix.os }}
21
31
steps :
22
32
- uses : actions/checkout@v4
Original file line number Diff line number Diff line change 1
1
module github.com/fluent/fluent-logger-golang
2
2
3
- go 1.23.5
3
+ go 1.23.0
4
4
5
5
require github.com/tinylib/msgp v1.3.0
6
6
You can’t perform that action at this time.
0 commit comments