generated from HenriqueAmorim20/GEROcuidadoAPITemplate
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
de9e8ae
commit 00937a7
Showing
3 changed files
with
84 additions
and
15 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Build | ||
on: | ||
push: | ||
branches: | ||
- develop | ||
- release-sonar | ||
- release-retroativo1 | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
jobs: | ||
test-unit: | ||
name: Test Unit & Scan | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Test Unit | ||
id: test-unit | ||
run: | | ||
docker-compose -f docker-compose.test.yml up -V --force-recreate --build --abort-on-container-exit --exit-code-from gerocuidado-usuario-api-test | ||
env: | ||
TEST: unit | ||
|
||
- name: SonarCloud Scan | ||
uses: SonarSource/sonarcloud-github-action@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
|
||
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: | | ||
docker-compose -f docker-compose.test.yml up -V --force-recreate --build --abort-on-container-exit --exit-code-from gerocuidado-usuario-api-test | ||
env: | ||
TEST: e2e |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
sonar.projectKey=fga-eps-mds_2023-2-GEROcuidado-APIUsuario | ||
sonar.organization=fga-eps-mds-1 | ||
|
||
sonar.projectName=2023-2-GEROcuidado-APIUsuario | ||
|
||
sonar.sources=./src | ||
sonar.sources.exclusions=./e2e, /.vscode | ||
sonar.host.url=https://sonarcloud.io | ||
|
||
sonar.tests=./e2e | ||
sonar.sourceEncoding=UTF-8 | ||
sonar.python.version=3 | ||
|
||
sonar.dynamicAnalysis=reuseReports | ||
sonar.core.codeCoveragePlugin=cobertura | ||
sonar.python.coverage.reportPaths=coverage.xml | ||
sonar.python.xunit.reportPath=junit.xml | ||
sonar.sources=src | ||
sonar.exclusions=**/main.ts,**/ormconfig.ts,**/*.module.ts,src/migration/*.ts,src/migrations.ts | ||
|
||
sonar.javascript.lcov.reportPaths=coverage/unit/lcov.info | ||
|
||
sonar.tests=src | ||
sonar.test.inclusions=**/*.spec.ts | ||
sonar.testExecutionReportPaths=reports/sonar-report.xml |