Skip to content

chore(deps-dev): bump @typescript-eslint/parser from 8.59.0 to 8.60.1 in /backend #97

chore(deps-dev): bump @typescript-eslint/parser from 8.59.0 to 8.60.1 in /backend

chore(deps-dev): bump @typescript-eslint/parser from 8.59.0 to 8.60.1 in /backend #97

Workflow file for this run

name: Backend CI
on:
push:
branches:
- main
paths:
- 'backend/**'
pull_request:
branches:
- main
paths:
- 'backend/**'
permissions:
contents: write
jobs:
test:
name: Test and Coverage
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'latest'
- name: Install dependencies
working-directory: ./backend
run: npm ci
- name: Generate Prisma client
working-directory: ./backend
run: npx prisma generate
- name: Run tests with coverage
working-directory: ./backend
env:
NODE_ENV: test
DATABASE_URL: postgresql://test:test@localhost:5432/test
ALLOWED_ORIGINS: http://localhost:3000
API_BASE_URL: http://localhost:5000
LOG_LEVEL: error
run: npm test
- name: Update coverage badge
working-directory: ./backend
run: node scripts/update-coverage-badge.js
- name: Commit badge update
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add README.md
git diff --cached --quiet || git commit -m "docs: update coverage badge"
git push