Update .forgejo/workflows/ci.yml
All checks were successful
Build Resilient App. / build (push) Successful in 16m21s
All checks were successful
Build Resilient App. / build (push) Successful in 16m21s
This commit is contained in:
parent
d2d10e9786
commit
f59d8b7b60
1 changed files with 4 additions and 23 deletions
|
@ -14,31 +14,12 @@ jobs:
|
||||||
- name: Show working directory contents
|
- name: Show working directory contents
|
||||||
run: ls -la
|
run: ls -la
|
||||||
|
|
||||||
- name: Set up Node.js
|
- name: Install system dependencies
|
||||||
uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: '18'
|
|
||||||
|
|
||||||
- name: Set up Java 17
|
|
||||||
uses: actions/setup-java@v4
|
|
||||||
with:
|
|
||||||
distribution: 'temurin' # or 'zulu', 'corretto', etc.
|
|
||||||
java-version: '17'
|
|
||||||
cache: 'maven' # optional: cache ~/.m2
|
|
||||||
|
|
||||||
- name: Install Maven and Git
|
|
||||||
run: |
|
run: |
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y maven git
|
apt-get install -y nodejs npm openjdk-17-jdk maven git
|
||||||
|
export JAVA_HOME=$(dirname $(dirname $(readlink -f $(which javac))))
|
||||||
# Replaced by steps : Set up Node.js; Set up Java 17; Install Maven and Git
|
echo "JAVA_HOME=$JAVA_HOME" >> $GITHUB_ENV
|
||||||
# for improved performance
|
|
||||||
# - 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
|
|
||||||
|
|
||||||
- name: Check Java and Node versions
|
- name: Check Java and Node versions
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue