Skip to content

(BC) closer.New with options that allow implicit CloseAll call + #22

(BC) closer.New with options that allow implicit CloseAll call +

(BC) closer.New with options that allow implicit CloseAll call + #22

Workflow file for this run

name: golangci-lint
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
pull-requests: read
env:
GO_VERSION: stable
GOLANGCI_LINT_VERSION: v2.1.6
jobs:
detect-modules:
runs-on: ubuntu-latest
outputs:
modules: ${{ steps.set-modules.outputs.modules }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- id: set-modules
run: echo "modules=$(go list -m -json | jq -sc '[.[].Dir]')" >> $GITHUB_OUTPUT
golangci:
name: lint
needs: detect-modules
runs-on: ubuntu-latest
strategy:
matrix:
module: ${{ fromJSON(needs.detect-modules.outputs.modules) }}
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: golangci-lint ${{ matrix.module }}
uses: golangci/golangci-lint-action@v8
with:
version: ${{ env.GOLANGCI_LINT_VERSION }}
working-directory: ${{ matrix.module }}
gotest:
name: tests
needs: detect-modules
runs-on: ubuntu-latest
strategy:
matrix:
module: ${{ fromJSON(needs.detect-modules.outputs.modules) }}
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Test with the Go CLI
run: go test -race ${{ matrix.module }}/...