Skip to content

fix: bump actions/checkout from 4 to 5 #522

fix: bump actions/checkout from 4 to 5

fix: bump actions/checkout from 4 to 5 #522

Workflow file for this run

name: "Unit Tests"
on:
pull_request:
jobs:
unittest:
runs-on: ubuntu-latest
services:
rabbitmq:
image: rabbitmq
env:
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: guest
RABBITMQ_DEFAULT_VHOST: /
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
svc:
image: yusufali/servc
ports:
- 3000:3000
env:
CONF__HTTP__PORT: 3000
CONF__BUS__ROUTE: test
CONF__CACHE__URL: redis://redis
CONF__BUS__URL: amqp://guest:guest@rabbitmq
CONF__WORKER__EXITON5XX: "false"
strategy:
matrix:
node-version:
- lts/*
- current
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npx prettier src/ --check
- run: npm run build
- run: |
docker start $(docker ps -q)
sleep 15
- run: npm run-script test
env:
TEST_QUEUE: test
API_URL: http://${{ github.server_url != 'https://github.com' && 'svc' || 'localhost' }}:3000