Skip to content

doc: improve doc and examples around task cancellation, drain and callbacks #261

doc: improve doc and examples around task cancellation, drain and callbacks

doc: improve doc and examples around task cancellation, drain and callbacks #261

Workflow file for this run

name: Tests
on:
push:
branches:
- main
- v*
pull_request:
branches:
- main
- v*
jobs:
build:
strategy:
matrix:
# Minimum required version per go.mod and latest two supported releases.
go-version: ["1.22", "oldstable", "stable"]
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Run static checks
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
with:
# renovate: datasource=github-releases depName=golangci/golangci-lint
version: v2.11.4
args: --config=.golangci.yml --verbose
skip-cache: true
- name: Build
run: go build
- name: Run unit tests
run: go test -v -race -cover