Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
b0f8bc4
update projet to JavaFX21 + JDK 17
Noars Jun 11, 2025
8276a9d
Fix spotbugs CI
Noars Jun 11, 2025
d638fb8
Create spotbugs-exclude.xml
Noars Jun 11, 2025
1986b1f
Merge pull request #2 from Noars/updateProjectJDKJavaFxGradleSpringLTS
Noars Jun 11, 2025
7ba41aa
Update gradle.properties
Noars Jun 12, 2025
d0c1040
Update build.gradle
Noars Jun 12, 2025
b9ceff3
Update build.gradle
Noars Jun 12, 2025
fb681b3
Update build.gradle
Noars Jun 12, 2025
a3b4592
Update build.gradle
Noars Jun 12, 2025
217f3f7
Update build.gradle
Noars Jun 12, 2025
6895bbc
Update build.gradle
Noars Jun 12, 2025
d14e6ca
Update build.gradle
Noars Jun 12, 2025
caf3258
Update build.gradle
Noars Jun 12, 2025
27721e6
Update build.gradle
Noars Jun 12, 2025
ae6d760
Update installer.gradle
Noars Jun 12, 2025
37ddcc8
Update installer.gradle
Noars Jun 12, 2025
939d9f9
fix files name generated
Noars Jun 12, 2025
d4dc06f
Update build.gradle
Noars Jun 12, 2025
f4340af
Update build.gradle
Noars Jun 12, 2025
0cb5df7
Update build.gradle
Noars Jun 12, 2025
904aa6e
Update build.gradle
Noars Jun 12, 2025
4f88b4a
fix release
Noars Jun 13, 2025
a81f135
[Gradle Release Plugin] - pre tag commit: '1.0.0'.
Jun 13, 2025
1fa9b3a
Update gradle.properties
Noars Jun 13, 2025
3cbad2c
[Gradle Release Plugin] - new version commit: '1.1.17'.
Jun 13, 2025
1cfb8fc
Update release.yml
Noars Jun 13, 2025
e707009
Update gradle.properties
Noars Jun 13, 2025
bf00db1
[Gradle Release Plugin] - new version commit: '1.1.2'.
Jun 13, 2025
b8d9ca7
Update version project to v1.1.1
invalid-email-address Jun 13, 2025
2802f22
Update release.yml
Noars Jun 13, 2025
251cf4a
Update gradle.properties
Noars Jun 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
name: Continuous Integration

# Trigger the workflow on push or pull request
on: [push, pull_request]

jobs:

build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up JDK 11
uses: actions/setup-java@v1
- name: Set up JDK 17 (Azul Zulu)
uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'zulu'
java-version: '17'

- name: Run tests with Gradle
- name: Run SpotBugs
run: |
chmod +x ./gradlew
./gradlew --stacktrace --info spotbugsMain

- name: Upload Artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
if: always()
with:
name: 'Spotbugs Reports'
path: ./build/reports/
name: Spotbugs Reports
path: '**/build/spotbugs/'
42 changes: 42 additions & 0 deletions .github/workflows/project-check-reminder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Project Check Reminder

on:
schedule:
- cron: '0 8 1 2 *' # 1er février à 08:00 UTC
- cron: '0 8 1 8 *' # 1er août à 08:00 UTC
workflow_dispatch:

jobs:
create-reminder:
runs-on: ubuntu-latest

steps:
- name: Récupérer la date du jour
id: date
run: echo "today=$(date +'%d/%m/%Y')" >> "$GITHUB_OUTPUT"

- name: Générer le contenu dynamique
run: |
cat > issue.md <<EOF
## 🔁 Rappel semestriel : vérification des dépendances

📅 Rappel généré automatiquement le **$TODAY**

### 🔍 Vérifications à faire :
- [ ] Vérification si mise à jour des dépendances Java (Gradle, Spring, autres libs)
- [ ] Vérification si mise à jour du JDK utilisé
- [ ] Vérification si mise à jour de JavaFX
- [ ] Vérification si mise à jour des plugins Gradle
- [ ] Vérification si mise à jour des bibliothèques
- [ ] Vérification si mise à jour des workflows GitHub Actions
EOF
env:
TODAY: ${{ steps.date.outputs.today }}

- name: Créer une issue de rappel
uses: peter-evans/create-issue-from-file@v5
with:
title: 📦 Vérification semestrielle des dépendances
content-filepath: issue.md
labels: maintenance, dependencies
token: ${{ secrets.GITHUB_TOKEN }}
131 changes: 101 additions & 30 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,62 +1,133 @@
on:
push:
branches:
- master
name: Release InterAACtionGaze

name: Release Gaze
on:
workflow_dispatch:
inputs:
bump:
description: 'Version type'
required: true
default: 'patch'
type: choice
options:
- major
- minor
- patch

jobs:
release:
runs-on: ubuntu-latest

steps:

- name: Show version type selected
run: echo "Version selected is -> ${{ github.event.inputs.bump }}"

- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
tool-cache: false
android: true
dotnet: false
haskell: false
large-packages: false
swap-storage: false

- name: Checkout code
uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '11'
java-version: '17'

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 16

- name: Download JREs
run: |
chmod +x ./gradlew
./gradlew --stacktrace --info downloadAndExtractJREs
chmod -R 777 build/jre
- name: Setup Git Config
run: |
git config --global user.email "ci@gazeplay.net"
git config --global user.name "GazePlay Automation"

- name: Generate releases
- name: Generate Releases
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
./gradlew --stacktrace --info packageApp
./gradlew --stacktrace --info release

- name: Generate Windows Installer with InnoSetup
- name: Rename Releases
run: |
chmod 777 build/distributions
chmod -R 777 build/jre
./gradlew --stacktrace --info generateWindowsInstallerInDocker
cd ./build/distributions/
mv interAACtionGaze-linux*.tar.gz interAACtionGaze-linux.tar.gz
mv interAACtionGaze-macos*.tar.gz interAACtionGaze-macos.tar.gz
mv interAACtionGaze-no-jre*.zip interAACtionGaze-noJRE.zip
mv interAACtionGaze-no-jre*.tar.gz interAACtionGaze-noJRE.tar.gz
mv interAACtionGaze-windows*.zip interAACtionGaze-windows.zip
mv interAACtionGaze-windows-x64*installer.exe interAACtionGaze-windows-x64-installer.exe

- name: Get Env
run: |
echo "REPO_NAME=${{ github.repository }}" >> $GITHUB_ENV
echo "REPO_BASENAME=$(basename ${{ github.repository }})" >> $GITHUB_ENV

- name: New tag
id: new-tag
run: |
LATEST_RELEASE_INFO=$(curl -s https://api.github.com/repos/${{ env.REPO_NAME }}/releases/latest)
NEW_VERSION_LINK=$(echo "$LATEST_RELEASE_INFO" | grep "browser_download_url.*interAACtionGaze*" | cut -d: -f2,3 | tr -d \")
NEW_VERSION=$( echo "${NEW_VERSION_LINK}" | cut -d/ -f9)
NEW_VERSION_NO_EXT=$( echo ${NEW_VERSION} | cut -d. -f1)
NEW_VERSION_NAME=$(echo "$LATEST_RELEASE_INFO" | grep "name.*interAACtionGaze*" | cut -d: -f2,3 | tr -d \" | head -n 1 | tr -d \,)
GET_TAG=$(echo "$NEW_VERSION_NAME" | cut -d " " -f3)
TAG_1=$(echo "$GET_TAG" | cut -d. -f1)
TAG_2=$(echo "$GET_TAG" | cut -d. -f2)
TAG_3=$(echo "$GET_TAG" | cut -d. -f3)
NEW_TAG=$(echo "$(( $TAG_3 + 1 ))")
TAG="${TAG_1}.${TAG_2}.${NEW_TAG}"
echo "tag=$TAG" >> $GITHUB_OUTPUT
latest_tag=$(curl -s https://api.github.com/repos/${{ env.REPO_NAME }}/releases/latest | jq -r .tag_name)
version="${latest_tag#v}" # strip leading 'v'
IFS='.' read -r major minor patch <<< "$version"

case "${{ github.event.inputs.bump }}" in
major)
major=$((major + 1))
minor=0
patch=0
nexPatch=$((patch + 1))
;;
minor)
minor=$((minor + 1))
patch=0
nexPatch=$((patch + 1))
;;
patch)
patch=$((patch + 1))
nexPatch=$((patch + 1))
;;
*)
echo "Option invalide: $bump"
exit 1
;;
esac

new_tag="v$major.$minor.$patch"
next_tag="$major.$minor.$nexPatch"
echo "tag=$new_tag" >> $GITHUB_OUTPUT
echo "nextTag=$next_tag" >> $GITHUB_OUTPUT

- name: Update version project for gradle
run: |
version="${{ steps.new-tag.outputs.nextTag }}"

if grep -q '^version=' gradle.properties; then
sed -i "s/^version=.*/version=${version}/" gradle.properties
else
echo "version=${version}" >> gradle.properties
fi

- name: Setup next release
run: |
git config user.name "github-actions"
git config user.email "github-actions@github.com"
git add gradle.properties
git commit -m "Setup next release for gradle"
git push

- name: Create GitHub Release
id: create_release
Expand Down
Loading