chore(deps): bump actions/checkout from 3 to 4 #2135
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: 'Go formatting checker' | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: ./go.mod | |
- name: Check Go formatting | |
run: if [ "$(gofmt -l . | wc -l)" -gt 0 ]; then exit 1; fi | |
golang-ci: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: ./go.mod | |
cache: true | |
- name: Install golangci-lint | |
run: make dev-setup | |
- name: make lint-ci integration | |
env: | |
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: make lint-ci | |
- name: Run golangci-lint | |
run: make lint-check |