Skip to content
Closed
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
29 changes: 16 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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