resilient/.forgejo/workflows/ci.yml
root 422622b255
Some checks failed
Build Resilient App / build (push) Failing after 1m44s
Update .forgejo/workflows/ci.yml
2025-06-11 00:00:37 +01:00

45 lines
1,022 B
YAML

name: Build Resilient App
on:
push:
branches: [main, master, develop]
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: [docker]
steps:
- name: Show working directory contents
run: ls -la
- name: Install system dependencies
run: |
apt-get update
apt-get install -y nodejs npm openjdk-17-jdk maven git
export JAVA_HOME=$(dirname $(dirname $(readlink -f $(which javac))))
echo "JAVA_HOME=$JAVA_HOME" >> $GITHUB_ENV
node -v
npm -v
java -version
mvn -version
- name: Install frontend dependencies
run: |
cd src/main/webapp
npm ci
- name: Build frontend
run: |
cd src/main/webapp
npm run build -- --configuration production
- name: Build backend (Spring Boot)
run: |
mvn clean package -Pprod -DskipTests
- name: List output files
run: |
ls -lh target/*.jar || true