diff --git a/.gitea/workflows/checks-and-policy.yml b/.gitea/workflows/checks-and-policy.yml index cedb3bd..ee6c400 100644 --- a/.gitea/workflows/checks-and-policy.yml +++ b/.gitea/workflows/checks-and-policy.yml @@ -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: diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml index 9e89a8e..27082ef 100644 --- a/.gitea/workflows/demo.yaml +++ b/.gitea/workflows/demo.yaml @@ -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 diff --git a/.gitea/workflows/full-latest.yaml b/.gitea/workflows/full-latest.yaml index 57862c5..5e58d26 100644 --- a/.gitea/workflows/full-latest.yaml +++ b/.gitea/workflows/full-latest.yaml @@ -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." \ No newline at end of file + - 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 \ No newline at end of file diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 8fc17ec..d481e1e 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -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