-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'staging' into production
- Loading branch information
Showing
476 changed files
with
20,541 additions
and
8,276 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,7 @@ | ||
node_modules | ||
db/* | ||
dist | ||
.env | ||
coverage | ||
.nyc_output | ||
yarn-error.log |
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 |
---|---|---|
|
@@ -2,7 +2,6 @@ module.exports = { | |
root: true, | ||
env: { | ||
node: true, | ||
mocha: true, | ||
}, | ||
plugins: ['prettier'], | ||
extends: [ | ||
|
Validating CODEOWNERS rules …
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
name: 🌟 Améliorations | ||
about: Modèle pour demande d'amélioration | ||
labels: Needs Triage | ||
--- | ||
|
||
### Sujet | ||
|
||
_Description de la demande en quelques mots_ | ||
|
||
### Environnement | ||
|
||
Environnement (dev, prod...) : | ||
Navigateur : | ||
Utilisateur : | ||
URL : | ||
|
||
### Etapes pour reproduire / vérifier la bonne implémentation de l'amélioration | ||
|
||
1. _Je clique sur ..._ | ||
2. _Je rentre la valeur ... dans ..._ | ||
|
||
_Ajouter des captures d'écran si nécessaire (Impr. écran et Ctrl-V directement ici)_ | ||
|
||
### Comportement attendu | ||
|
||
1. _Je clique sur ... -> ouverture de la fenêtre_ | ||
2. ... | ||
|
||
### Comportement actuel | ||
|
||
1. _Je clique sur ... -> ouverture de la fenêtre_ | ||
2. ... |
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,9 @@ | ||
--- | ||
name: 📚 Documentation technique | ||
about: Modèle pour demande d'amélioration de la documentation technique | ||
labels: Needs Triage, DOC | ||
--- | ||
|
||
### Sujet | ||
|
||
_Description de la demande en quelques mots_ |
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,35 @@ | ||
--- | ||
name: 🐜 BUG | ||
about: Modèle pour bugs génériques | ||
labels: Needs Triage | ||
--- | ||
|
||
### Sujet | ||
|
||
_Description du problème en quelques mots_ | ||
|
||
### Environnement | ||
|
||
Environnement (dev, prod...) : | ||
Navigateur : | ||
Utilisateur : | ||
URL : | ||
|
||
### Etapes pour reproduire | ||
|
||
1. _Je clique sur ..._ | ||
2. _Je rentre la valeur ... dans ..._ | ||
|
||
_Ajouter des captures d'écran si nécessaire (Impr. écran et Ctrl-V directement ici)_ | ||
_Préciser les valeurs utilisées dans les formulaires_ | ||
_Répéter la procédure avec la Console ouverte (F12) et copier-coller le contenu ou faire une capture d'écran_ | ||
|
||
### Comportement attendu | ||
|
||
1. _Je clique sur ... -> ouverture de la fenêtre_ | ||
2. ... | ||
|
||
### Comportement actuel | ||
|
||
1. _Je clique sur ... -> ouverture de la fenêtre_ | ||
2. ... |
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,40 @@ | ||
--- | ||
name: 🧾 Attestation | ||
about: Bugs et retours sur les attestations | ||
labels: ATTESTATION | ||
assignees: jonathanfallon | ||
--- | ||
|
||
> ⚠️ les attestations peuvent contenir des données personnelles, attention à bien anonymiser les contenus soumis. | ||
> ℹ️ le modèle ci-dessous est à titre indicatif, vous pouvez supprimez les parties inutiles. | ||
### Sujet | ||
|
||
_Description du problème en quelques mots_ | ||
|
||
### Environnement | ||
|
||
Environnement (dev, prod...) : | ||
Navigateur : | ||
Utilisateur : | ||
URL : | ||
|
||
### Etapes pour reproduire | ||
|
||
1. _Je clique sur ..._ | ||
2. _Je rentre la valeur ... dans ..._ | ||
|
||
_Ajouter des captures d'écran si nécessaire (Impr. écran et Ctrl-V directement ici)_ | ||
_Préciser les valeurs utilisées dans les formulaires_ | ||
_Répéter la procédure avec la Console ouverte (F12) et copier-coller le contenu ou faire une capture d'écran_ | ||
|
||
### Comportement attendu | ||
|
||
1. _Je clique sur ... -> ouverture de la fenêtre_ | ||
2. ... | ||
|
||
### Comportement actuel | ||
|
||
1. _Je clique sur ... -> ouverture de la fenêtre_ | ||
2. ... |
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,35 @@ | ||
name: Api doc deployment | ||
on: | ||
push: | ||
branches: | ||
- doc | ||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/[email protected] | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Install and Build 🔧 | ||
run: | | ||
cd api-doc | ||
yarn | ||
yarn gen | ||
yarn build | ||
- name: Install SSH Client 🔑 | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.FRONT_DEPLOY_KEY }} | ||
|
||
- name: Deploy 🚀 | ||
uses: appleboy/scp-action@master | ||
with: | ||
host: ${{ secrets.FRONT_HOST }} | ||
username: ${{ secrets.FRONT_USERNAME }} | ||
key: ${{ secrets.FRONT_DEPLOY_KEY }} | ||
source: api-doc/dist | ||
target: www/api-doc | ||
rm: true |
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,42 @@ | ||
name: Alwaysdata frontend | ||
on: | ||
push: | ||
branches: | ||
- production | ||
- staging | ||
- dev | ||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Extract branch name | ||
shell: bash | ||
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" | ||
id: extract_branch | ||
|
||
- name: Checkout 🛎️ | ||
uses: actions/[email protected] | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Install and Build 🔧 | ||
run: | | ||
cd dashboard | ||
cat src/environments/environment.${{ steps.extract_branch.outputs.branch }}.ts | sed 's/export const /window./' > src/assets/env.js | ||
yarn | ||
yarn build -c ${{ steps.extract_branch.outputs.branch }} | ||
- name: Install SSH Client 🔑 | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.FRONT_DEPLOY_KEY }} | ||
|
||
- name: Deploy 🚀 | ||
uses: appleboy/scp-action@master | ||
with: | ||
host: ${{ secrets.FRONT_HOST }} | ||
username: ${{ secrets.FRONT_USERNAME }} | ||
key: ${{ secrets.FRONT_DEPLOY_KEY }} | ||
source: dashboard/dist/dashboard/* | ||
target: www/${{ steps.extract_branch.outputs.branch }} | ||
rm: true |
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,29 @@ | ||
name: "Global - QA" | ||
|
||
on: pull_request | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
exec-global-qa: | ||
name: Exec QA | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Setup Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: "14.x" | ||
- name: Install dependencies | ||
run: yarn --frozen-lockfile | ||
- name: "Lint" | ||
run: yarn lint | ||
- name: "Audit api dependencies" | ||
run: yarn audit --level moderate --groups dependencies; [[ $? -ge 8 ]] && exit 1 || exit 0 | ||
working-directory: api | ||
- name: "Audit dashboard dependencies" | ||
run: yarn audit --level moderate --groups dependencies; [[ $? -ge 8 ]] && exit 1 || exit 0 | ||
working-directory: dashboard |
Oops, something went wrong.