Update .forgejo/workflows/ci.yml
Some checks failed
Build Resilient App. / build (push) Has been cancelled
Some checks failed
Build Resilient App. / build (push) Has been cancelled
This commit is contained in:
parent
f59d8b7b60
commit
7093f84b7a
1 changed files with 10 additions and 4 deletions
|
@ -11,9 +11,7 @@ jobs:
|
|||
runs-on: [docker]
|
||||
|
||||
steps:
|
||||
- name: Show working directory contents
|
||||
run: ls -la
|
||||
|
||||
# Install software dependencies into the runner container
|
||||
- name: Install system dependencies
|
||||
run: |
|
||||
apt-get update
|
||||
|
@ -27,15 +25,18 @@ jobs:
|
|||
mvn -v
|
||||
node -v
|
||||
npm -v
|
||||
|
||||
|
||||
# Checkout (clone) a fresh repo source of the project
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
# Install @Angular dependencies
|
||||
- name: Install frontend dependencies
|
||||
run: |
|
||||
cd src/main/webapp
|
||||
npm ci
|
||||
|
||||
# Setup node_modules cache, for better performance
|
||||
- name: Cache node_modules
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
|
@ -45,11 +46,13 @@ jobs:
|
|||
restore-keys: |
|
||||
node-modules-
|
||||
|
||||
# Build the frontend
|
||||
- name: Build frontend
|
||||
run: |
|
||||
cd src/main/webapp
|
||||
npm run build
|
||||
|
||||
# Setup Maven cache, for better performance
|
||||
- name: Cache Maven dependencies
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
|
@ -58,14 +61,17 @@ jobs:
|
|||
restore-keys: |
|
||||
maven-${{ runner.os }}-
|
||||
|
||||
# Build the backend (JAR)
|
||||
- name: Build backend (Spring Boot)
|
||||
run: |
|
||||
mvn clean package -Pprod -DskipTests
|
||||
|
||||
# Log output
|
||||
- name: List output files
|
||||
run: |
|
||||
ls -lh target/*.jar || true
|
||||
|
||||
# save artifacts
|
||||
- name: Upload backend JAR
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue