Skip to content

Commit 1d3d22a

Browse files
committed
Use a larger runner with more memory and run the linter separately to isolate memory usage
1 parent 95fef32 commit 1d3d22a

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

.github/workflows/go.yml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
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

0 commit comments

Comments
 (0)