Merge pull request #19 from p-society/main #4
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: Go Linter CI | |
on: | |
push: | |
branches: | |
- api/basketball | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.21.4 | |
- name: Install golint | |
run: | | |
cd src/api/basketball | |
go mod tidy | |
go get -u golang.org/x/lint/golint | |
- name: Run golint | |
run: golint |