From 3a84f16f23847eed77efae99ad862b5d0a6c99a6 Mon Sep 17 00:00:00 2001 From: SarTron-NorthBlue Date: Mon, 13 Jul 2026 09:18:32 +0400 Subject: [PATCH] Ajoute le pipeline CI Gitea Actions (CP11 - demarche DevOps) mvn clean verify (compile + tests) a chaque push/PR sur main, upload des jars en artefact si succes. Co-Authored-By: Claude Sonnet 5 --- .gitea/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .gitea/workflows/ci.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..44ec62d --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,34 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup JDK 17 + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: '17' + cache: maven + + - name: Build and test + run: mvn -B clean verify + + - name: Upload jars + if: success() + uses: actions/upload-artifact@v4 + with: + name: votenetwork-jars + path: | + velocity/target/VoteNetwork-Velocity.jar + spigot/target/VoteNetwork-Spigot.jar + retention-days: 14