Skip to content

fix: update cookie handling and token expiration settings for improve… #141

fix: update cookie handling and token expiration settings for improve…

fix: update cookie handling and token expiration settings for improve… #141

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
changes:
runs-on: ubuntu-latest
outputs:
backend: ${{ steps.filter.outputs.backend }}
frontend: ${{ steps.filter.outputs.frontend }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
backend:
- 'backend/**'
frontend:
- 'frontend/**'
backend:
needs: changes
if: needs.changes.outputs.backend == 'true' || github.event_name == 'push'
runs-on: ubuntu-latest
defaults:
run:
working-directory: backend
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: backend/package-lock.json
- run: npm ci
- run: npm run lint
- run: npm run build
- run: npm run test -- --ci --coverage --maxWorkers=2
- name: Upload coverage
if: always()
uses: actions/upload-artifact@v4
with:
name: backend-coverage
path: backend/coverage/
retention-days: 7
frontend:
needs: changes
if: needs.changes.outputs.frontend == 'true' || github.event_name == 'push'
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: frontend/package-lock.json
- run: npm ci
- run: npm run lint
- run: npm run build
- run: npx tsc --noEmit
ci-status:
if: always()
needs: [backend, frontend]
runs-on: ubuntu-latest
steps:
- name: Check CI Status
run: |
if [[ "${{ needs.backend.result }}" == "failure" ]] || [[ "${{ needs.frontend.result }}" == "failure" ]]; then
echo "❌ CI failed"
exit 1
fi
echo "✅ CI passed"