Add build and publish steps #3

Merged
chimeudeonwop merged 53 commits from feature/setup-workflow-pipeline into main 2025-11-04 18:20:11 +00:00
8 changed files with 357 additions and 2 deletions
Showing only changes of commit 4c35b3802f - Show all commits

View File

@ -7,6 +7,7 @@ on:
jobs:
frontend-jobs:
name: Set up Node and other necessary dependencies for Frontend Tests and Build
if: ${{ github.ref == 'refs/heads/main' }} # skip
runs-on: ubuntu-latest
steps:
@ -137,6 +138,7 @@ jobs:
backend-jobs:
name: Set up Java for Backend Tests and Build
if: ${{ github.ref == 'refs/heads/main' }} # skip
runs-on: ubuntu-latest
steps:

View File

@ -11,6 +11,8 @@ on:
jobs:
Explore-Gitea-Actions-2:
name: "Explore Gitea Actions - 2"
if: ${{ github.ref == 'refs/heads/main' }} # skip
runs-on: ubuntu-latest
steps:
- name: Info

View File

@ -22,7 +22,6 @@ jobs:
- name: Update apt-get
run: |
apt-get update -y
#apt-get update -qq >/dev/null -y
- name: Clone the repository
uses: actions/checkout@v4
@ -31,13 +30,15 @@ jobs:
#token: ${{ secrets.ACCESS_TOKEN }}
#fetch-depth: 0
#- name: Checkout repository manually
# env:
# TOKEN: ${{ secrets.ACCESS_TOKEN }}
# CLONE_URL: ${{ vars.CLONE_URL }}
# run: |
# echo "Cloning from $CLONE_URL"
# echo "Cloning ALL_REPO_TOKEN $ALL_REPO_TOKEN"
# CLONE_URL_WITH_AUTH=$(echo "$CLONE_URL" | sed "s#https://#https://$ALL_REPO_TOKEN@#")
# git clone --quiet "$CLONE_URL_WITH_AUTH" .
# echo "${{ gitea.repository }} cloned successfully."
- name: Build with Maven
#uses: actions/checkout@v5
#uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '21'
cache: 'maven'
#cache-dependency-path: 'sub-project/pom.xml' # optional
run: |
java -version
mvn -version
mvn clean test -Dspring.profiles.active=test

View File

@ -7,6 +7,7 @@ on:
jobs:
frontend-jobs:
name: Set up Node and other necessary dependencies for Frontend Tests and Build
if: ${{ github.ref == 'refs/heads/main' }} # skip
runs-on: ubuntu-latest
steps:
@ -83,6 +84,7 @@ jobs:
backend-jobs:
name: Set up Java for Backend Tests and Build
if: ${{ github.ref == 'refs/heads/main' }} # skip
runs-on: ubuntu-latest
#container:
#image: eclipse-temurin:21-jdk