-
Notifications
You must be signed in to change notification settings - Fork 0
Fix/cleanup ci #102
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
Fix/cleanup ci #102
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,21 @@ | ||||||||||||||||||||||||||||||||||
| name: CD – Deploy to Railway | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| on: | ||||||||||||||||||||||||||||||||||
| push: | ||||||||||||||||||||||||||||||||||
| branches: [main] | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| jobs: | ||||||||||||||||||||||||||||||||||
| deploy: | ||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
| deploy: | |
| deploy: | |
| needs: [test, security] |
Copilot
AI
Dec 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The action version used here (actions/checkout@v4) is inconsistent with the version used in the existing codeql.yml workflow (actions/checkout@v6). For consistency across the CI/CD pipeline, consider using the same version across all workflows.
| - uses: actions/checkout@v4 | |
| - uses: actions/checkout@v6 |
Copilot
AI
Dec 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Railway CLI installation script does not add the Railway binary to the PATH. After installation, the binary needs to be added to PATH to be accessible. Consider adding 'echo "$HOME/.railway/bin" >> $GITHUB_PATH' after the installation command, or use a composite action that handles this properly.
| curl -fsSL https://railway.app/install.sh | sh | |
| curl -fsSL https://railway.app/install.sh | sh | |
| echo "$HOME/.railway/bin" >> $GITHUB_PATH |
Copilot
AI
Dec 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The deployment step lacks validation to confirm successful deployment. Consider adding a post-deployment health check or validation step to ensure the application is running correctly on Railway before marking the deployment as successful.
| run: railway up --ci | |
| run: railway up --ci | |
| - name: Post-deployment health check | |
| run: | | |
| for i in {1..10}; do | |
| STATUS=$(curl -s -o /dev/null -w "%{http_code}" "${{ secrets.RAILWAY_APP_URL }}/health") | |
| if [ "$STATUS" -eq 200 ]; then | |
| echo "Health check passed." | |
| exit 0 | |
| fi | |
| echo "Health check failed with status $STATUS. Retrying in 5 seconds..." | |
| sleep 5 | |
| done | |
| echo "Application failed health check after deployment." | |
| exit 1 |
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,24 @@ | ||||||||||
| name: CI - Lint | ||||||||||
|
|
||||||||||
| on: | ||||||||||
| pull_request: | ||||||||||
| branches: [main] | ||||||||||
|
|
||||||||||
| jobs: | ||||||||||
| lint: | ||||||||||
| runs-on: ubuntu-latest | ||||||||||
| steps: | ||||||||||
| - uses: actions/checkout@v4 | ||||||||||
|
||||||||||
| - uses: actions/checkout@v4 | |
| - uses: actions/checkout@v6 |
Copilot
AI
Dec 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The action version used here (actions/setup-python@v5) is inconsistent with the version used in the existing codeql.yml workflow (actions/checkout@v6). For consistency across the CI/CD pipeline, consider using the same version across all workflows.
| - uses: actions/checkout@v4 | |
| - uses: actions/checkout@v6 |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,29 @@ | ||||||
| name: CI – Security Scan | ||||||
|
||||||
| name: CI – Security Scan | |
| name: CI - Security Scan |
Copilot
AI
Dec 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The action version used here (actions/checkout@v4) is inconsistent with the version used in the existing codeql.yml workflow (actions/checkout@v6). For consistency across the CI/CD pipeline, consider using the same version across all workflows.
| - uses: actions/checkout@v4 | |
| - uses: actions/checkout@v6 |
Copilot
AI
Dec 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The action version used here (actions/setup-python@v5) is inconsistent with the version used in the existing codeql.yml workflow (actions/checkout@v6). For consistency across the CI/CD pipeline, consider using the same version across all workflows.
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,30 @@ | ||||||||||
| name: CI – Test Suite | ||||||||||
|
||||||||||
| name: CI – Test Suite | |
| name: CI - Test Suite |
Copilot
AI
Dec 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The action version used here (actions/setup-python@v5) is inconsistent with the version used in the existing codeql.yml workflow (actions/checkout@v6). For consistency across the CI/CD pipeline, consider using the same version across all workflows.
| uses: actions/checkout@v4 | |
| uses: actions/checkout@v6 |
Copilot
AI
Dec 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The action version used here (actions/checkout@v4) is inconsistent with the version used in the existing codeql.yml workflow (actions/checkout@v6). For consistency across the CI/CD pipeline, consider using the same version across all workflows.
| uses: actions/checkout@v4 | |
| uses: actions/checkout@v6 |
Copilot
AI
Dec 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test execution is missing coverage reporting. The removed ci-cd.yml workflow included coverage reporting with codecov upload, which provided visibility into test coverage metrics. Consider adding coverage reporting back to maintain visibility into code coverage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inconsistent naming convention for workflow names. This workflow uses an en dash (–) in "CD – Deploy to Railway" while lint.yml uses a hyphen (-) in "CI - Lint". For consistency, use the same separator across all workflow names.