Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fix breaking Golang Linter #11

Merged
merged 1 commit into from
Nov 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down
Loading