diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 560070d..c17fb38 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,18 +2,21 @@ name: CI Workflow on: push: - branches: - - main - - dev + # branches: + # - main + # - dev pull_request: - branches: - - main - - dev + # branches: + # - main + # - dev jobs: # Job for building the backend (Go) 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: