-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Qodana | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: [main] | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
|
||
jobs: | ||
qodana: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
checks: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
node-version: '20' | ||
- name: 'Qodana Scan' | ||
uses: JetBrains/[email protected] | ||
with: | ||
args: --apply-fixes | ||
pr-mode: false | ||
push-fixes: pull-request | ||
env: | ||
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: Sudoku CI/CD | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
pull_request: | ||
branches: ["main"] | ||
|
||
jobs: | ||
install_JDK-install_wix-package_and_create_release: | ||
name: Install JDK, Wix v3.11, then compile, test, package, and upload the files | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install JDK | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '21' | ||
- name: Verify Java Installation | ||
run: java -version | ||
shell: cmd | ||
- name: Install WiX Toolset | ||
run: | | ||
$url = 'https://github.com/wixtoolset/wix3/releases/download/wix3111rtm/wix311.exe' | ||
$output = 'wix311.exe' | ||
Invoke-WebRequest -Uri $url -OutFile $output | ||
Start-Process -FilePath $output -ArgumentList '/quiet' -Wait -NoNewWindow | ||
- name: Add WiX Toolset to PATH | ||
run: | | ||
$newPath = 'C:\Program Files (x86)\WiX Toolset v3.11\bin' | ||
$currentPath = [Environment]::GetEnvironmentVariable('PATH', 'Machine') | ||
[Environment]::SetEnvironmentVariable('PATH', "$newPath;$currentPath", 'Machine') | ||
- name: Compile, Test, and Package with Maven | ||
run: mvn package -f pom.xml | ||
- name: Upload output folder | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: output-folder | ||
path: output | ||
|
||
publish_release: | ||
name: Publish the release and tag it | ||
needs: install_JDK-install_wix-package_and_create_release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Extract version | ||
run: echo "POM_VERSION=$(cat pom.xml | grep -oPm1 '(?<=<version>)[^<]+')" >> $GITHUB_ENV | ||
- name: Download output folder | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: output-folder | ||
path: output | ||
- name: Create Release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
name: SudokuFX release v${{ env.POM_VERSION }} | ||
tag: v${{ env.POM_VERSION }} | ||
body: <br>- The Zip file is the application without Java Runtime Environment included (the latest JRE must be installed on your machine), the .bat file launches the application.<br><br>- The MSI file includes the Java runtime environment and installs the application on your machine.<br><br>- The hash.txt file contains the files fingerprints. | ||
artifacts: 'output/*' | ||
- name: Create Tag | ||
run: git tag v${{ env.POM_VERSION }} | ||
- name: Push Tag | ||
run: git push --tags |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
output/ | ||
target/ | ||
!.mvn/wrapper/maven-wrapper.jar | ||
!**/src/main/**/target/ | ||
!**/src/test/**/target/ | ||
|
||
### IntelliJ IDEA ### | ||
.idea/modules.xml | ||
.idea/jarRepositories.xml | ||
.idea/compiler.xml | ||
.idea/libraries/ | ||
.idea/sonarlint/ | ||
*.iws | ||
*.iml | ||
*.ipr | ||
|
||
### Eclipse ### | ||
.apt_generated | ||
.classpath | ||
.factorypath | ||
.project | ||
.settings | ||
.springBeans | ||
.sts4-cache | ||
|
||
### NetBeans ### | ||
/nbproject/private/ | ||
/nbbuild/ | ||
/dist/ | ||
/nbdist/ | ||
/.nb-gradle/ | ||
build/ | ||
!**/src/main/**/build/ | ||
!**/src/test/**/build/ | ||
|
||
### VS Code ### | ||
.vscode/ | ||
|
||
### Mac OS ### | ||
.DS_Store |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.5/apache-maven-3.8.5-bin.zip | ||
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"rows_views":[[{"style":{"borders":"lrtb","font_style":{},"text_color":"","bg_color":"","halign":"left","valign":"top","padding":{"top":10,"right":5,"bottom":10,"left":5},"border_color":""}},{"style":{"borders":"lrtb","font_style":{},"text_color":"","bg_color":"","halign":"left","valign":"top","padding":{"top":10,"right":5,"bottom":10,"left":5},"border_color":""}},{"style":{"borders":"lrtb","font_style":{},"text_color":"","bg_color":"","halign":"left","valign":"top","padding":{"top":10,"right":5,"bottom":10,"left":5},"border_color":""}},{"style":{"borders":"lrtb","font_style":{},"text_color":"","bg_color":"","halign":"left","valign":"top","padding":{"top":10,"right":5,"bottom":10,"left":5},"border_color":""}}],[{"style":{"borders":"lrtb","font_style":{},"text_color":"","bg_color":"","halign":"left","valign":"top","padding":{"top":10,"right":5,"bottom":10,"left":5},"border_color":""}},{"style":{"borders":"lrtb","font_style":{},"text_color":"","bg_color":"","halign":"left","valign":"top","padding":{"top":10,"right":5,"bottom":10,"left":5},"border_color":""}},{"style":{"borders":"lrtb","font_style":{},"text_color":"","bg_color":"","halign":"left","valign":"top","padding":{"top":10,"right":5,"bottom":10,"left":5},"border_color":""}},{"style":{"borders":"lrtb","font_style":{},"text_color":"","bg_color":"","halign":"left","valign":"top","padding":{"top":10,"right":5,"bottom":10,"left":5},"border_color":""}}]],"model":{"rows":[[{"value":"Étape","cspan":1,"rspan":1,"markup":[1,5]},{"value":"Résultat attendu","cspan":1,"rspan":1,"markup":[1,16]},{"value":"Résultat obtenu","cspan":1,"rspan":1,"markup":[1,15]},{"value":"Conclusion","cspan":1,"rspan":1,"markup":[1,10]}],[{"value":"ÉTANT DONNÉ QUE je suis un utilisateur\ndéconnecté de l’application et de mon compte\nGoogle ou Apple\nET je suis sur la page de connexion\nLORSQUE je clique sur le bouton Se connecter\navec Google ou Apple\nALORS une modale d’authentification Google\nou Apple s’ouvre\n\nÉTANT DONNÉ QUE je suis un utilisateur\ndéconnecté de mon compte Google ou Apple\nLORSQUE je remplis les champs adresse email et mot de passe\nET je clique sur le bouton Suivant\nET l’e-mail et le mot de passe sont corrects\nALORS la modale est redirigée vers la\nconfirmation de connexion à l’application en tant\nque NOM\n\nÉTANT DONNÉ QUE je suis un utilisateur\nconnecté à mon compte Google ou Apple\nLORSQUE je clique sur le bouton Confirmer\nALORS si dans l’application pas de compte pour\nce mail Google ou Apple partagé, le système\ncréé un compte avec ce mail, et m’y connecte\navec un nouveau token\nET je suis un utilisateur connecté\nET la modale est fermée\nET le système me redirige vers le catalogue\nproduits\n\nÉTANT DONNÉ QUE je suis un utilisateur\nconnecté à mon compte Google ou Apple\nLORSQUE je clique sur le bouton Confirmer\nALORS si dans l’application un compte a ce\nmail Google ou Apple partagé, le système m’y\nconnecte avec un nouveau token\nET je suis un utilisateur connecté\nET la modale est fermée\nET le système me redirige vers le catalogue\nproduits","cspan":1,"rspan":1,"markup":[1,261,0,2,1,315,0,2,1,388,0,2,1,349]},{"value":"User\nauthentifié\navec succès","cspan":1,"rspan":1,"markup":[1,28]},{"value":"(laisser vide - devra être rempli par le testeur)","cspan":1,"rspan":1,"markup":[1,49]},{"value":"(laisser vide - devra être rempli par le testeur)","cspan":1,"rspan":1,"markup":[1,49]}]]},"theme":null,"fixed_layout":false,"markup":{"instances":[{},{"style":{}},null]},"options":{}} |