Skip to content

fix(deps): update module github.com/rs/zerolog to v1.35.1 #127

fix(deps): update module github.com/rs/zerolog to v1.35.1

fix(deps): update module github.com/rs/zerolog to v1.35.1 #127

Workflow file for this run

name: Pre-merge checks
on:
# Trigger on pull requests
pull_request:
# Optional: Manual trigger for on-demand linting
workflow_dispatch:
env:
GO_VERSION: 1.25
GOLANGCI_LINT_VERSION: v2.4.0
jobs:
detect-modules:
runs-on: ubuntu-24.04
outputs:
modules: ${{ steps.set-modules.outputs.modules }}
steps:
- uses: actions/checkout@v6
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version: ${{ env.GO_VERSION }}
- name: Set list of modules
id: set-modules
run: echo "modules=$(go list -m -json | jq -s '.' | jq -c '[.[].Dir]')" >> $GITHUB_OUTPUT
golangci-lint:
needs: detect-modules
runs-on: ubuntu-24.04
strategy:
matrix:
modules: ${{ fromJSON(needs.detect-modules.outputs.modules) }}
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: ${{ env.GO_VERSION }}
- name: golangci-lint ${{ matrix.modules }}
uses: golangci/golangci-lint-action@v9
with:
version: ${{ env.GOLANGCI_LINT_VERSION }}
working-directory: ${{ matrix.modules }}
tests:
runs-on: ubuntu-24.04
needs: detect-modules
strategy:
matrix:
modules: ${{ fromJSON(needs.detect-modules.outputs.modules) }}
steps:
- uses: actions/checkout@v6
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version: ${{ env.GO_VERSION }}
- name: Run tests
run: go test -v ${{ matrix.modules }}/...