Skip to content

Additonal logger import adjustments #47

Additonal logger import adjustments

Additonal logger import adjustments #47

Workflow file for this run

name: Run Codebase Tests
on:
push:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
testableDirs: ["services/authentication", "services/eventbus","services/devicecontrol"] # basically go into these dirs and npm install and run tests
services:
redis:
image: redis:latest
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v5 # get the code from the repo
- name: Set up Node
uses: actions/setup-node@v3 # set up node
with:
node-version: "22"
- name: Install service workspace dependencies
working-directory: services
run: npm ci # install root workspace dependencies - this is needed for the packages to be linked correctly
- name: Install dependencies and run tests
working-directory: ${{ matrix.testableDirs }}
env:
TEST_REDIS_HOST: localhost
TEST_REDIS_PORT: 6379
TEST_REDIS_DB: 0
run: |
npx vitest run