Skip to content

(#143) atualiza repositorio com novas configuracoes e deploy #4

(#143) atualiza repositorio com novas configuracoes e deploy

(#143) atualiza repositorio com novas configuracoes e deploy #4

Workflow file for this run

name: Check
on:
pull_request:
workflow_dispatch:
jobs:
test-unit:
name: Test Unit
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Test Unit
id: test-unit
run: |
TEST=unit docker-compose -f docker-compose.test.yml up -V --force-recreate --build --abort-on-container-exit --exit-code-from gerocuidado-forum-api-test
env:
TEST: unit
test-e2e:
name: Test E2E
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Test E2E
id: test-e2e
run: |
TEST=e2e docker-compose -f docker-compose.test.yml up -V --force-recreate --build --abort-on-container-exit --exit-code-from gerocuidado-forum-api-test
env:
TEST: e2e
sonarqube:
name: sonarqube
needs: ['test-unit', 'test-e2e']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install dependencies
run: yarn
- name: Test and coverage
run: yarn jest --coverage