Skip to content

chore(deps-dev): bump body-parser from 1.20.2 to 1.20.3 #165

chore(deps-dev): bump body-parser from 1.20.2 to 1.20.3

chore(deps-dev): bump body-parser from 1.20.2 to 1.20.3 #165

Workflow file for this run

name: Unit and integration test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
services:
redis:
image: redis:alpine
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 3
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- name: Wait for Redis to be ready
run: |
for i in {1..10}; do
if nc -z localhost 6379; then
echo "Redis is ready"
break
fi
echo "Waiting for Redis..."
sleep 2
done
- name: Set up environment variables
run: echo "REDIS_URL=redis://localhost:6379" >> $GITHUB_ENV
- run: npm run lint
- run: npm run build --if-present
- run: npm test
env:
REDIS_URL: redis://localhost:6379