Skip to content

ci: fix CI scripts for main branch case #1764

ci: fix CI scripts for main branch case

ci: fix CI scripts for main branch case #1764

Workflow file for this run

name: golangci-lint
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
golangci:
name: lint
runs-on: ${{ matrix.os }}
strategy:
matrix:
go-version: [1.20.x]
os: [ubuntu-latest] # other options: macos-latest, windows-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
# Required: the version of golangci-lint is required and must be
# specified without patch version
version: latest
# the following causes golangci-init to do nothing, so all it does is
# install golang and golangci
args: --version
# Show only new issues if it's a pull request. The default value is `false`.
# only-new-issues: true
- name: run ci linter
run: make ci-lint