Skip to content

chore(deps): Update golangci/golangci-lint-action action to v6.4.1 #188

chore(deps): Update golangci/golangci-lint-action action to v6.4.1

chore(deps): Update golangci/golangci-lint-action action to v6.4.1 #188

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_call:
# Set default permissions
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read # For golangci-lint annotations
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Go
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version: '1.23'
cache: true
cache-dependency-path: go.sum
- name: golangci-lint
uses: golangci/golangci-lint-action@818ec4d51a1feacefc42ff1b3ec25d4962690f39 # v6.4.1
with:
version: latest
- name: Build
run: go build -v ./...
# coverage:
# needs: build
# runs-on: ubuntu-latest
# permissions:
# contents: read
# pull-requests: write # For codecov PR comments
# steps:
# - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
# - name: Set up Go
# uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
# with:
# go-version: '1.23'
# - name: Generate coverage report
# run: |
# go test -race -coverprofile=coverage.txt -covermode=atomic ./...
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # v5.3.1
# with:
# token: ${{ secrets.CODECOV_TOKEN }}