Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
9ab39f0
fix(script): fix generate changelog script
ryanaidilp Sep 8, 2025
fc609bb
feat: simplify changelog generator and remove unnecessary complexity
ryanaidilp Sep 15, 2025
547f455
fix: simplify workflows and restore working deploy.yml
ryanaidilp Sep 15, 2025
2b75660
fix: resolve workflow duplicates and conflicts
ryanaidilp Sep 15, 2025
3a68d85
fix: implement config-based version management system
ryanaidilp Sep 15, 2025
cf94c80
feat: enhance release workflow with swagger regeneration and script o…
ryanaidilp Sep 15, 2025
81c3649
Merge pull request #32 from banua-coder/feature/simplify-changelog-ge…
ryanaidilp Sep 15, 2025
00d63eb
fix: remove redundant province data from latest_case in province list…
ryanaidilp Sep 15, 2025
0b40546
Merge pull request #33 from banua-coder/feature/fix/province-api-redu…
ryanaidilp Sep 15, 2025
3058e37
feat: enhance CI with intelligent testing and coverage thresholds
ryanaidilp Sep 15, 2025
82cc7c9
docs: update README with latest project structure and CI features
ryanaidilp Sep 15, 2025
64a5630
feat: optimize binary size with conditional Swagger compilation
ryanaidilp Sep 15, 2025
1d36218
feat: configure deploy workflow for minimal production build (6.1MB)
ryanaidilp Sep 15, 2025
1f26b10
fix: resolve CI failures - integration tests and code formatting
ryanaidilp Sep 15, 2025
86872ee
fix: resolve golangci-lint version compatibility issue in CI
ryanaidilp Sep 15, 2025
f86a70b
fix: explicitly reference embedded DB methods to resolve linter issues
ryanaidilp Sep 15, 2025
73b1e51
fix: add golangci-lint configuration to resolve test file issues
ryanaidilp Sep 15, 2025
d77e2c0
fix: exclude test files from golangci-lint to resolve mock interface …
ryanaidilp Sep 15, 2025
acf8032
Merge pull request #34 from banua-coder/feature/optimize-binary-size
ryanaidilp Sep 15, 2025
5903854
chore: bump version to v2.5.0 for next development cycle
github-actions[bot] Sep 15, 2025
e187adb
chore(version): bump version number in main.go and covid_handler
ryanaidilp Sep 15, 2025
41cd505
feat: restore missing page parameter in Swagger documentation
ryanaidilp Sep 15, 2025
9a21fa7
fix: resolve test failures and linting issues in v2.5.0 branch
ryanaidilp Sep 15, 2025
8545470
fix: correct rate limiting value in Swagger documentation
ryanaidilp Sep 15, 2025
4d2154a
fix: revert to explicit DB field access for CI compatibility
ryanaidilp Sep 15, 2025
d1f3a1c
Merge pull request #36 from banua-coder/chore/bump-version-to-v2.5.0-dev
ryanaidilp Sep 15, 2025
e4bcba3
chore: prepare v2.4.0 release
github-actions[bot] Sep 15, 2025
02c5ba7
fix: resolve linting issues and finalize Swagger documentation
ryanaidilp Sep 15, 2025
6ac2114
fix: resolve version script corruption and CI database compatibility
ryanaidilp Sep 15, 2025
8568560
feat: add pagination support to national cases endpoint
ryanaidilp Sep 15, 2025
eb03411
chore(swagger): re-generate swagger
ryanaidilp Sep 15, 2025
6791808
feat: add automatic PR creation from release/hotfix branches to main
ryanaidilp Sep 15, 2025
29f8db3
fix: resolve build, lint, and test failures
ryanaidilp Sep 15, 2025
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
594 changes: 537 additions & 57 deletions .github/workflows/ci.yml

Large diffs are not rendered by default.

39 changes: 15 additions & 24 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ jobs:
fi
echo "Deploying version: ${GITHUB_REF#refs/tags/}"

- name: Build binary for Linux
- name: Build minimal production binary for Linux
run: |
echo "Building ${{ secrets.BINARY_NAME }} for Linux..."
echo "Building minimal production ${{ secrets.BINARY_NAME }} for Linux..."
echo "📦 Swagger dependencies excluded for optimal binary size"
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o ${{ secrets.BINARY_NAME }} ./cmd/main.go
ls -la ${{ secrets.BINARY_NAME }}

Expand All @@ -50,26 +51,12 @@ jobs:
file ${{ secrets.BINARY_NAME }}
echo "Binary size: $(du -h ${{ secrets.BINARY_NAME }} | cut -f1)"

- name: Generate Swagger documentation
- name: Verify minimal production build
run: |
echo "📚 Generating Swagger documentation..."

# Install swag tool
go install github.com/swaggo/swag/cmd/swag@latest

# Generate documentation including HTML
swag init -g cmd/main.go -o ./docs --outputTypes go,json,yaml,html

# Verify generated files
echo "Generated documentation files:"
ls -la docs/

# Check if HTML was generated
if [ -f "docs/swagger.html" ]; then
echo "✅ HTML documentation generated successfully"
else
echo "⚠️ HTML documentation not found, continuing without it"
fi
echo "📦 Minimal production build completed"
echo "Binary size: $(du -h ${{ secrets.BINARY_NAME }} | cut -f1)"
echo "✅ Swagger dependencies excluded for smaller binary size"
echo "📚 Swagger documentation available at static website"

- name: Setup SSH Agent
uses: webfactory/ssh-agent@v0.8.0
Expand Down Expand Up @@ -269,7 +256,7 @@ jobs:
create-release:
runs-on: ubuntu-latest
needs: build-and-deploy
if: needs.build-and-deploy.result == 'success'
if: needs.build-and-deploy.result == 'success' && github.event_name == 'push'
permissions:
contents: write

Expand All @@ -282,7 +269,11 @@ jobs:
- name: Get version and release info
id: release_info
run: |
VERSION=${GITHUB_REF#refs/tags/}
if [ "${{ github.event_name }}" = "workflow_dispatch" ] && [ -n "${{ github.event.inputs.tag }}" ]; then
VERSION="${{ github.event.inputs.tag }}"
else
VERSION=${GITHUB_REF#refs/tags/}
fi
echo "version=$VERSION" >> $GITHUB_OUTPUT

# Check if this is a hotfix or regular release
Expand Down Expand Up @@ -401,4 +392,4 @@ jobs:
else
echo "❌ Deployment failed for ${{ github.ref_name }}"
exit 1
fi
fi
Loading
Loading