Skip to content

Merge pull request #1120 from cloudevents/dependabot/github_actions/g… #1697

Merge pull request #1120 from cloudevents/dependabot/github_actions/g…

Merge pull request #1120 from cloudevents/dependabot/github_actions/g… #1697

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@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.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@e60da84bfae8c7920a47be973d75e15710aa8bd7 # v6.3.0
with:
version: v1.61
working-directory: v2