Debian Codegraph @

.github/workflows/ci.yaml

raw symbols SCIP
1 name: ci
2
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]
13
14 jobs:
15 test:
16 strategy:
17 matrix:
18 os: [ubuntu, macos, windows]
19 # test oldest supported version and currently maintained Go versions.
20 golang: ['1.23.x', 'oldstable', 'stable']
21 # currently, we cannot run non-x86_64 machines on GitHub Actions cloud env.
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
30 name: CI golang ${{ matrix.golang }} on ${{ matrix.os }}
31 steps:
32 - uses: actions/checkout@v4
33 - uses: actions/setup-go@v5
34 with:
35 go-version: ${{ matrix.golang }}
36 - name: Test
37 run: go test -v -race -cover -covermode=atomic ./fluent
38 shell: bash