Setup config #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Node CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: List files in the current directory | |
run: ls -la | |
- name: Start docker | |
run: docker compose up -d | |
- name: Wait for containers to be ready | |
run: sleep 10 | |
- name: Check running containers | |
run: docker ps | |
- name: Check ollama logs | |
run: docker logs ollama-inferer | |
- name: Pull LLaVA:7b model into ollama-inferer docker container | |
run: docker exec ollama-inferer ./bin/bash -c "ollama pull llava:7b" | |
- name: Install dependencies | |
run: npm install | |
- name: Run linter | |
run: npm run lint | |
- name: Configure RabbitMQ exchanges and queues from subcribers | |
run: npm run rabbitmq:configure | |
- name: Open a consumption channel for RabbitMQ subscribers | |
run: npm run rabbitmq:consume & | |
- name: Build process | |
run: npm run build | |
- name: Backoffice spotify-user contexts unit tests | |
run: npm run test:backoffice:backend:spotify-user:unit | |
- name: Backoffice spotify-user-last-tracks contexts unit tests | |
run: npm run test:backoffice:backend:spotify-user-last-tracks:unit | |
- name: Stop docker container | |
if: always() | |
run: docker compose down |