CI / build (push) Failing after 12m37s
Le container maven:3.9-eclipse-temurin-17 n'a pas Node.js, requis par les actions JS (checkout, cache, upload-artifact) -> echec au premier step. Retour au runner par defaut + installation explicite de Maven (actions/setup-java installe le JDK mais jamais Maven). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
39 lines
824 B
YAML
39 lines
824 B
YAML
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: Install Maven
|
|
run: |
|
|
which mvn || (sudo apt-get update && sudo apt-get install -y 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
|