You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by hn...@apache.org on 2022/05/17 12:16:46 UTC

[myfaces-tobago] branch tobago-4.x updated: ci: fix tobago-4.x branch

This is an automated email from the ASF dual-hosted git repository.

hnoeth pushed a commit to branch tobago-4.x
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git


The following commit(s) were added to refs/heads/tobago-4.x by this push:
     new 90dfd9a271 ci: fix tobago-4.x branch
90dfd9a271 is described below

commit 90dfd9a2710e5353c458cc07e7f6885502257de7
Author: Henning Noeth <hn...@apache.org>
AuthorDate: Tue May 17 13:51:40 2022 +0200

    ci: fix tobago-4.x branch
---
 .github/workflows/tobago-ci.yml | 75 +++++++++++++++++------------------------
 1 file changed, 31 insertions(+), 44 deletions(-)

diff --git a/.github/workflows/tobago-ci.yml b/.github/workflows/tobago-ci.yml
index 96b27b9b81..c8711f5482 100644
--- a/.github/workflows/tobago-ci.yml
+++ b/.github/workflows/tobago-ci.yml
@@ -20,53 +20,40 @@ name: Tobago CI
 
 on:
   push:
-    branches:
-      - master
-      - tobago-4.x
-    paths-ignore:
-      - '**.md'
-      - 'Jenkinsfile'
+    branches: [ tobago-4.x ]
   pull_request:
-    branches:
-      - master
-      - tobago-4.x
-    paths-ignore:
-      - '**.md'
-      - 'Jenkinsfile'
-  workflow_dispatch:  
+    branches: [ tobago-4.x ]
+  workflow_dispatch:
 
 jobs:
   build:
-
     runs-on: ubuntu-latest
-
     steps:
-    - uses: actions/checkout@v3
-      with:
-        persist-credentials: false
-    - name: Set up JDK 1.8
-      uses: actions/setup-java@v3
-      with:
-        distribution: 'zulu'
-        java-version: '8'
-    - name: Cache Maven packages
-      uses: actions/cache@v3
-      with:
-        path: ~/.m2
-        key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
-        restore-keys: ${{ runner.os }}-m2
-    - name: Build with Maven
-      run: |
-         if ! mvn -B clean package checkstyle:check apache-rat:check animal-sniffer:check dependency-check:check -Pgenerate-assembly -Dformats=XML -f pom.xml; then
-           find . \( -path '*/target/surefire-reports/*.xml' -o -path '*/target/failsafe-reports/*.xml' -o -path '*/target/rat.txt' -o -path '*/target/checkstyle-result.xml' -o -path '*/target/dependency-check-report.xml' \) | zip -q reports.zip -@
-           exit 1
-         fi
-
-    - name:  Reports
-      uses: actions/upload-artifact@v3
-      if: failure()
-      with:
-        name: reports
-        retention-days: 14
-        path: reports.zip
-        if-no-files-found: ignore
+      - uses: actions/checkout@v3
+        with:
+          persist-credentials: false
+      - name: Set up JDK 1.8
+        uses: actions/setup-java@v3
+        with:
+          distribution: 'zulu'
+          java-version: '8'
+      - name: Cache Maven packages
+        uses: actions/cache@v3
+        with:
+          path: ~/.m2
+          key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
+          restore-keys: ${{ runner.os }}-m2
+      - name: Build with Maven
+        run: |
+          if ! mvn -B checkstyle:check apache-rat:check animal-sniffer:check dependency-check:check -Pgenerate-assembly -Pfrontend package -Dformats=XML -f pom.xml; then
+            find . \( -path '*/target/surefire-reports/*.xml' -o -path '*/target/failsafe-reports/*.xml' -o -path '*/target/rat.txt' -o -path '*/target/checkstyle-result.xml' -o -path '*/target/dependency-check-report.xml' \) | zip -q reports.zip -@
+            exit 1
+          fi
+      - name: Reports
+        uses: actions/upload-artifact@v3
+        if: failure()
+        with:
+          name: reports
+          retention-days: 14
+          path: reports.zip
+          if-no-files-found: ignore