File tree Expand file tree Collapse file tree 1 file changed +17
-9
lines changed Expand file tree Collapse file tree 1 file changed +17
-9
lines changed Original file line number Diff line number Diff line change 1717 - name : Set up Go
1818 uses : actions/setup-go@v4
1919 with :
20- go-version : ' 1.23 '
20+ go-version : ' 1.20 '
2121
2222 - name : Cache Go modules
2323 uses : actions/cache@v3
@@ -38,13 +38,21 @@ jobs:
3838 - name : Run tests
3939 run : go test -v ./...
4040
41- - name : Run linter (optional)
41+ lint :
42+ runs-on : ubuntu-latest
43+
44+ steps :
45+ - name : Checkout code
46+ uses : actions/checkout@v4
47+
48+ - name : Set up Go
49+ uses : actions/setup-go@v4
50+ with :
51+ go-version : ' 1.20'
52+
53+ - name : Install golangci-lint
4254 run : |
4355 curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.50.1
44- golangci-lint run
45-
46- # - name: Run tests
47- # env:
48- # DATABASE_URL: ${{ secrets.DATABASE_URL }}
49- # SENDGRID_API_KEY: ${{ secrets.SENDGRID_API_KEY }}
50- # run: go test -v ./...
56+
57+ - name : Run linter
58+ run : golangci-lint run
You can’t perform that action at this time.
0 commit comments