diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 560070d..04cd9e0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,9 @@ jobs: backend: name: Build Backend (Go) runs-on: ubuntu-latest + defaults: + run: + working-directory: ./server steps: # Step 1: Checkout the code @@ -35,19 +38,19 @@ jobs: restore-keys: | ${{ runner.os }}-go- - # Step 4: Run Go Linter - - name: Run GolangCI-Lint Check - uses: golangci/golangci-lint-action@v6 - - # Step 5: Install Go dependencies + # Step 4: Install Go dependencies - name: Install Go Dependencies run: go mod tidy - working-directory: ./server + + # Step 5: Run Go Linter + - name: Run GolangCI-Lint Check + uses: golangci/golangci-lint-action@v6 + with: + working-directory: ./server # Step 6: Build the Go application - name: Build Go Application run: go build -o app ./main.go - working-directory: ./server # Job for building the frontend (React) frontend: