Skip to content

Merge pull request #320 from Jo-anny/issue-296-inbound-decrypt-pipeli… #233

Merge pull request #320 from Jo-anny/issue-296-inbound-decrypt-pipeli…

Merge pull request #320 from Jo-anny/issue-296-inbound-decrypt-pipeli… #233

Workflow file for this run

name: Backend CI
on:
push:
paths:
- 'apps/backend/**'
- '.github/workflows/backend-ci.yml'
pull_request:
paths:
- 'apps/backend/**'
- '.github/workflows/backend-ci.yml'
jobs:
check:
name: Format · Lint · Test
runs-on: ubuntu-latest
services:
redis:
image: redis:7-alpine
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 5s
--health-timeout 3s
--health-retries 5
defaults:
run:
working-directory: apps/backend
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Install dependencies
run: pnpm install --frozen-lockfile
working-directory: .
- name: Format check
run: pnpm format:check
- name: Lint
run: pnpm lint
- name: Tests
run: pnpm test
env:
JWT_SECRET: ${{ secrets.JWT_SECRET || 'ci-test-secret' }}
REDIS_URL: redis://localhost:6379