Skip to content

Merge pull request #1111 from cloudevents/dependabot/github_actions/a… #1678

Merge pull request #1111 from cloudevents/dependabot/github_actions/a…

Merge pull request #1111 from cloudevents/dependabot/github_actions/a… #1678

Workflow file for this run

name: Code Style
on:
push:
branches: [ 'main', 'release-*' ]
pull_request:
branches: [ 'main', 'release-*' ]
permissions:
contents: read
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup Go
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: 1.23
cache-dependency-path: v2/go.sum
id: go
- id: golangci_configuration
uses: andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v3.0.0
with:
files: .golangci.yaml
- name: Go Lint on ./v2
if: steps.golangci_configuration.outputs.files_exists == 'true'
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1
with:
version: v1.61
working-directory: v2