Skip to content

sliding window lua script updated #21

sliding window lua script updated

sliding window lua script updated #21

Workflow file for this run

name: CI/CD
on:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 20
- name: Build
working-directory: ./backend
run: |
npm install
npm run build
- name: Create env file
working-directory: ./backend
run: |
echo "REDIS_CLUSTER_NODES=redis-node-1:6379,redis-node-2:6379,redis-node-3:6379" >> .env
echo "PORT=3000" >> .env
- name: Start and test
run: |
docker compose up -d
sleep 30
curl http://localhost:3000/health
docker compose down