Skip to content

chore(deps)(deps): bump the production-dependencies group across 1 di… #842

chore(deps)(deps): bump the production-dependencies group across 1 di…

chore(deps)(deps): bump the production-dependencies group across 1 di… #842

Workflow file for this run

name: Pull Request Checks
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
pr-validation:
name: PR Validation
runs-on: ubuntu-latest
services:
redis:
image: redis:7-alpine
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Check PR title format
uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |
feat
fix
refactor
chore
docs
test
perf
ci
build
requireScope: false
subjectPattern: ^[A-Z].+[^.]$
subjectPatternError: |
The subject must start with an uppercase letter and not end with a period.
- name: Check for merge conflicts
run: |
if git grep -rn --color "^<<<<<<< HEAD" .; then
echo "Merge conflict markers found!"
exit 1
fi
- name: Check file size limits
run: |
large_files=$(find . -type f -size +5M -not -path "*/node_modules/*" -not -path "*/.git/*" -not -path "*/dist/*")
if [ -n "$large_files" ]; then
echo "Large files detected (>5MB):"
echo "$large_files"
exit 1
fi
auto-label:
name: Auto Label PR
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Label based on changed files
uses: actions/labeler@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
test-summary:
name: Test Summary
runs-on: ubuntu-latest
needs: [pr-validation]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
cache-dependency-path: backend/requirements.txt
- name: Install backend dependencies
working-directory: backend
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run backend tests
working-directory: backend
env:
DATABASE_URL: sqlite+aiosqlite:///:memory:

Check failure on line 104 in .github/workflows/pr-checks.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pr-checks.yml

Invalid workflow file

You have an error in your yaml syntax on line 104
REDIS_URL: redis://localhost:6379/0
SECRET_KEY: test-secret-key
PYTHONPATH: ${{ github.workspace }}/backend
run: |
pytest --verbose --tb=short
- name: Set up Node.js 18
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
cache-dependency-path: frontend/package-lock.json
- name: Install frontend dependencies
working-directory: frontend
run: npm install
- name: Run frontend tests
working-directory: frontend
run: npm test -- --run
- name: Comment test results
if: always()
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { data: comments } = await github.rest.issues.listComments({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
});
const botComment = comments.find(comment => {
return comment.user.type === 'Bot' && comment.body.includes('Test Summary')
});
const output = `### Test Summary
 All tests passed successfully!
**Backend**: Tests completed
**Frontend**: Tests completed
---
*Auto-generated by GitHub Actions*`;
if (botComment) {
github.rest.issues.updateComment({
owner: context.repo.owner,
repo: context.repo.repo,
comment_id: botComment.id,
body: output
});
} else {
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: output
});
}