Skip to content

chore: initial commit — auth-worker with RabbitMQ consumer and CI/CD #1

chore: initial commit — auth-worker with RabbitMQ consumer and CI/CD

chore: initial commit — auth-worker with RabbitMQ consumer and CI/CD #1

Workflow file for this run

name: Test
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
unit-tests:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
- name: Run unit tests with coverage
run: npm run test:cov
env:
NODE_ENV: test
- name: Upload coverage report
uses: actions/upload-artifact@v4
if: always()
with:
name: auth-worker-coverage
path: coverage/
retention-days: 7