Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Bump actions/setup-go from 4 to 5 #249

Bump actions/setup-go from 4 to 5

Bump actions/setup-go from 4 to 5 #249

Workflow file for this run

name: Static code analysis
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
lint-code:
name: Code Linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.19.x
# This action takes care of caching/restoring modules and build caches.
# Therefore, this step should remain the first one that is executed after
# the Go setup, in case other steps are added to this job in the future.
- name: Lint Go code
uses: golangci/golangci-lint-action@v3
with:
# (hack) By default, errors are reported to the GitHub commit view only
# (or the "Files changed" tab on PRs). We also want errors to be logged
# with line numbers to the execution logs of the workflow.
#
# The args below result in the following flags being passed to the
# linter command, which works, quite surprisingly:
# --out-format=github-actions --out-format=colored-line-number
#
# Ref. https://github.com/golangci/golangci-lint-action/issues/119#issuecomment-981090648
args: --out-${NO_FUTURE}format=colored-line-number --timeout 15m