Skip to content

Commit

Permalink
feat: teste #19 CICD
Browse files Browse the repository at this point in the history
  • Loading branch information
LeohsPaixao committed Nov 24, 2024
1 parent 10c4fd3 commit 313d096
Showing 1 changed file with 8 additions and 24 deletions.
32 changes: 8 additions & 24 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,17 @@ jobs:
- name: Checkout do repositório
uses: actions/checkout@v4

- name: Configurar e iniciar backend
- name: Configurar node
uses: actions/setup-node@v4
with:
node-version: 22
- run: |

- name: Instalar as dependências do Monorepo
run: yarn

- name: Iniciar backend
run: |
cd backend
yarn install
yarn prisma migrate dev
yarn prisma:seed
nohup yarn api > backend.log 2>&1 &
Expand All @@ -47,22 +51,13 @@ jobs:
- name: Configurar e iniciar frontend
run: |
cd frontend
yarn install
nohup yarn serve > frontend.log 2>&1 &
cypress-tests:
name: Executar Testes Cypress
needs: setup-environment
runs-on: ubuntu-latest
steps:
- name: Checkout do repositório
uses: actions/checkout@v4

- name: Instalar dependências do Cypress
run: |
cd test/cypress
yarn install
- name: Executar testes Cypress
run: |
cd test/cypress
Expand All @@ -80,14 +75,6 @@ jobs:
needs: setup-environment
runs-on: ubuntu-latest
steps:
- name: Checkout do repositório
uses: actions/checkout@v4

- name: Instalar dependências do Playwright
run: |
cd test/playwright
yarn install
- name: Executar testes Playwright
run: |
cd test/playwright
Expand All @@ -106,16 +93,13 @@ jobs:
needs: setup-environment
runs-on: ubuntu-latest
steps:
- name: Checkout do repositório
uses: actions/checkout@v4

- name: Configurar Python
uses: actions/setup-python@v4
with:
python-version: 3.11

- name: Instalar dependências do sistema para Robot Framework
run: chmod +x ./.github/scripts/chrome.sh && ./.github/scripts/chrome.sh
run: chmod +x .github/scripts/chrome.sh && .github/scripts/chrome.sh

- name: Criar ambiente virtual para Python
run: python -m venv venv
Expand Down

0 comments on commit 313d096

Please sign in to comment.