Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 19 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,32 @@
name: ci

on:
pull_request:
branches: '*'
push:
branches:
- master
- main
- 'release-*'
# Default to 'contents: read', which grants actions to read commits.
#
# If any permission is set, any permission not included in the list is
# implicitly set to "none".
#
# see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
permissions:
contents: read

on: [push, pull_request]

jobs:
test:
strategy:
matrix:
os: [ubuntu, macos, windows]
golang: ['1.23', '1.24']
# test oldest supported version and currently maintained Go versions.
golang: ['1.23.x', 'oldstable', 'stable']
# currently, we cannot run non-x86_64 machines on GitHub Actions cloud env.
runs-on: ${{ matrix.os }}-latest
timeout-minutes: 10 # guardrails timeout for the whole job
env:
# Setting GOTOOLCHAIN to local tells go
# to use the bundled Go version rather
# than fetching the toolchain according to
# toolchain directive found in go.mod.
GOTOOLCHAIN: local
name: CI golang ${{ matrix.golang }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/fluent/fluent-logger-golang

go 1.23.5
go 1.23.0

require github.com/tinylib/msgp v1.3.0

Expand Down