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]
|
runs-on: [docker]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Show working directory contents
|
# Install software dependencies into the runner container
|
||||||
run: ls -la
|
|
||||||
|
|
||||||
- name: Install system dependencies
|
- name: Install system dependencies
|
||||||
run: |
|
run: |
|
||||||
apt-get update
|
apt-get update
|
||||||
|
@ -27,15 +25,18 @@ jobs:
|
||||||
mvn -v
|
mvn -v
|
||||||
node -v
|
node -v
|
||||||
npm -v
|
npm -v
|
||||||
|
|
||||||
|
# Checkout (clone) a fresh repo source of the project
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
# Install @Angular dependencies
|
||||||
- name: Install frontend dependencies
|
- name: Install frontend dependencies
|
||||||
run: |
|
run: |
|
||||||
cd src/main/webapp
|
cd src/main/webapp
|
||||||
npm ci
|
npm ci
|
||||||
|
|
||||||
|
# Setup node_modules cache, for better performance
|
||||||
- name: Cache node_modules
|
- name: Cache node_modules
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
|
@ -45,11 +46,13 @@ jobs:
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
node-modules-
|
node-modules-
|
||||||
|
|
||||||
|
# Build the frontend
|
||||||
- name: Build frontend
|
- name: Build frontend
|
||||||
run: |
|
run: |
|
||||||
cd src/main/webapp
|
cd src/main/webapp
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
|
# Setup Maven cache, for better performance
|
||||||
- name: Cache Maven dependencies
|
- name: Cache Maven dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
|
@ -58,14 +61,17 @@ jobs:
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
maven-${{ runner.os }}-
|
maven-${{ runner.os }}-
|
||||||
|
|
||||||
|
# Build the backend (JAR)
|
||||||
- name: Build backend (Spring Boot)
|
- name: Build backend (Spring Boot)
|
||||||
run: |
|
run: |
|
||||||
mvn clean package -Pprod -DskipTests
|
mvn clean package -Pprod -DskipTests
|
||||||
|
|
||||||
|
# Log output
|
||||||
- name: List output files
|
- name: List output files
|
||||||
run: |
|
run: |
|
||||||
ls -lh target/*.jar || true
|
ls -lh target/*.jar || true
|
||||||
|
|
||||||
|
# save artifacts
|
||||||
- name: Upload backend JAR
|
- name: Upload backend JAR
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue