File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 14
14
backend :
15
15
name : Build Backend (Go)
16
16
runs-on : ubuntu-latest
17
+ defaults :
18
+ run :
19
+ working-directory : ./server
17
20
18
21
steps :
19
22
# Step 1: Checkout the code
@@ -35,19 +38,19 @@ jobs:
35
38
restore-keys : |
36
39
${{ runner.os }}-go-
37
40
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
43
42
- name : Install Go Dependencies
44
43
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
46
50
47
51
# Step 6: Build the Go application
48
52
- name : Build Go Application
49
53
run : go build -o app ./main.go
50
- working-directory : ./server
51
54
52
55
# Job for building the frontend (React)
53
56
frontend :
You can’t perform that action at this time.
0 commit comments