Skip to content

Commit d26a05c

Browse files
authored
Merge pull request #138 from thaJeztah/downgrade_min_go_version
downgrade minimum go version and cleanup actions
2 parents 6b31033 + 0531d5a commit d26a05c

File tree

2 files changed

+20
-10
lines changed

2 files changed

+20
-10
lines changed

.github/workflows/ci.yaml

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,32 @@
11
name: ci
22

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]
1113

1214
jobs:
1315
test:
1416
strategy:
1517
matrix:
1618
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']
1821
# currently, we cannot run non-x86_64 machines on GitHub Actions cloud env.
1922
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
2030
name: CI golang ${{ matrix.golang }} on ${{ matrix.os }}
2131
steps:
2232
- uses: actions/checkout@v4

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/fluent/fluent-logger-golang
22

3-
go 1.23.5
3+
go 1.23.0
44

55
require github.com/tinylib/msgp v1.3.0
66

0 commit comments

Comments
 (0)