This repository has been archived by the owner on Dec 11, 2023. It is now read-only.
Bump github.com/redis/go-redis/v9 from 9.1.0 to 9.2.1 #436
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
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 | |