Skip to content

Commit 3c2c457

Browse files
ci: fix breaking Golang Linter
1 parent e7c83e4 commit 3c2c457

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ jobs:
1414
backend:
1515
name: Build Backend (Go)
1616
runs-on: ubuntu-latest
17+
defaults:
18+
run:
19+
working-directory: ./server
1720

1821
steps:
1922
# Step 1: Checkout the code
@@ -35,19 +38,19 @@ jobs:
3538
restore-keys: |
3639
${{ runner.os }}-go-
3740
38-
# Step 4: Run Go Linter
39-
- name: Run GolangCI-Lint Check
40-
uses: golangci/golangci-lint-action@v6
41-
42-
# Step 5: Install Go dependencies
41+
# Step 4: Install Go dependencies
4342
- name: Install Go Dependencies
4443
run: go mod tidy
45-
working-directory: ./server
44+
45+
# Step 5: Run Go Linter
46+
- name: Run GolangCI-Lint Check
47+
uses: golangci/golangci-lint-action@v6
48+
with:
49+
working-directory: ./server
4650

4751
# Step 6: Build the Go application
4852
- name: Build Go Application
4953
run: go build -o app ./main.go
50-
working-directory: ./server
5154

5255
# Job for building the frontend (React)
5356
frontend:

0 commit comments

Comments
 (0)