github CI: linter debug #17
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: golang:1.23-alpine | |
steps: | |
- name: Install dependencies | |
run: apk add --no-cache make | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install go dependencies | |
run: go mod download | |
- name: Run tidy | |
run: make tidy | |
- name: Debug golangci-lint config | |
run: | | |
pwd | |
ls -la | |
cat .golangci.yml | |
$(shell which golangci-lint) --version | |
- name: Run lint install | |
run: make lint-install | |
- name: Run lint | |
run: make lint | |
- name: Build the project | |
run: make build |