Skip to content

Commit

Permalink
Merge pull request #1 from fga-eps-mds/chore/adapt-for-2024-1
Browse files Browse the repository at this point in the history
Adapta repositório para 2024
  • Loading branch information
VictorJorgeFGA authored Aug 20, 2024
2 parents d68530b + 2033899 commit 7cd00fa
Show file tree
Hide file tree
Showing 18 changed files with 7,076 additions and 9,573 deletions.
4 changes: 4 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,9 @@ module.exports = {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "off",
"prettier/prettier": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-namespace": "off"
},
};
23 changes: 9 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,31 @@ on:
push:
branches:
- develop
- teste/sonar
- sonar/carrigindo_sonar
- teste/sonarcloud

pull_request:
types: [opened, synchronize, reopened]

jobs:
sonarcloud:
name: SonarCloud
name: Test Unit & Sonar Scan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Install dependencies
run: yarn

- name: Linter
run: yarn eslint . --format json --output-file reports/eslint-report.json

- name: Test and coverage
run: yarn jest --coverage

- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

- name: Sincroniza cobertura de testes com o Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
flags: jest
name: 2023-2-GEROcuidado-Front
verbose: true
13 changes: 7 additions & 6 deletions .github/workflows/metrics.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: Export de métricas

on:
push:
branches: [main, develop]
tags:
- 'v*'
pull_request:
branches:
- main
- develop
types: [closed]

jobs:
release:
Expand All @@ -17,13 +18,13 @@ jobs:
run: mkdir analytics-raw-data

- name: Coletar métricas no SonarCloud
run: python parser.py ${{ github.event.repository.name }} ${{ github.ref_name }}
run: python parser.py fga-eps-mds-1_2024-1-gerocuidado-front ${{ github.event.repository.name }} ${{ github.ref_name }}

- name: Envia métricas para repo de Doc
run: |
git config --global user.email "${{secrets.USER_EMAIL}}"
git config --global user.name "${{secrets.USER_NAME}}"
git clone --single-branch --branch main "https://x-access-token:${{secrets.API_TOKEN_DOC}}@github.com/fga-eps-mds/2023-2-GEROcuidado-Doc" docs
git clone --single-branch --branch main "https://x-access-token:${{secrets.API_TOKEN_DOC}}@github.com/fga-eps-mds/2024-1-GEROcuidado-Doc" docs
mkdir -p docs/analytics-raw-data
cp -R analytics-raw-data/*.json docs/analytics-raw-data
cd docs/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/udpate.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: update
on: pull_request
on: pull_request

jobs:
update:
Expand Down
5 changes: 3 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#ffffff"
}
},
"package": "com.gerocuidado.gerocuidado"
},
"web": {
"favicon": "./assets/favicon.png",
Expand Down Expand Up @@ -50,4 +51,4 @@
},
"owner": "gerocuidado"
}
}
}
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ module.exports = function (api) {
api.cache(true);
return {
presets: ["babel-preset-expo"],
plugins: ["expo-router/babel"],
plugins: [],
};
};
Loading

0 comments on commit 7cd00fa

Please sign in to comment.