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

View File

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

View File

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

View File

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