Skip to content

Add delay before running unit tests #7

Add delay before running unit tests

Add delay before running unit tests #7

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '0 0 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:

Check failure on line 17 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 17
- name: Code checkout
uses: actions/checkout@v3
- name: Docker-compose configurations
run: docker-compose up -d
- name: Check if docker-compose is working
run: docker-compose ps
- name: Wait for the api01 to be ready
run: sleep 10 # Ajuste o tempo conforme necessário
- name: Run unit tests with vitest
run: docker exec $(docker-compose ps -q api01) npm test
- name: Stop and remove docker-compose containers
run: docker-compose down