This is an automated email from the ASF dual-hosted git repository.
paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy-geb.git
The following commit(s) were added to refs/heads/master by this push:
new db950d34 add test action
db950d34 is described below
commit db950d34b10fe94d59f7feb81d880e7870fb86d5
Author: Paul King <[email protected]>
AuthorDate: Fri Dec 13 14:35:34 2024 +1000
add test action
---
.../{license-check.yml => build-test.yml} | 25 +++++++++++-----------
.github/workflows/license-check.yml | 5 +++--
.github/workflows/style-check.yml | 3 ++-
3 files changed, 18 insertions(+), 15 deletions(-)
diff --git a/.github/workflows/license-check.yml
b/.github/workflows/build-test.yml
similarity index 70%
copy from .github/workflows/license-check.yml
copy to .github/workflows/build-test.yml
index 774c26c1..ab8de2c8 100644
--- a/.github/workflows/license-check.yml
+++ b/.github/workflows/build-test.yml
@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-name: Check licenses
+name: Build and test
on: [push, pull_request]
@@ -21,7 +21,11 @@ permissions:
contents: read
jobs:
- check:
+ test:
+ strategy:
+ fail-fast: false
+ matrix:
+ java: [11, 17, 21]
runs-on: ubuntu-latest
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
@@ -30,17 +34,14 @@ jobs:
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
- java-version: 21
+ java-version: ${{ matrix.java }}
check-latest: true
- uses: gradle/actions/setup-gradle@v4
- - name: Check licenses with rat
- run: ./gradlew rat
+ - name: Build and run tests
+ run: ./gradlew --no-daemon test
timeout-minutes: 60
- - name: Check licenses with license plugin
- run: ./gradlew checkLicense
- timeout-minutes: 60
- - name: Upload reports
- uses: actions/upload-artifact@v4
+ - name: Publish Test Report
+ uses:
mikepenz/action-junit-report@992d97d6eb2e5f3de985fbf9df6a04386874114d
+ if: success() || failure() # always run even if the previous step fails
with:
- name: build-reports
- path: build/reports/
+ report_paths: '**/build/test-results/test/TEST-*.xml'
\ No newline at end of file
diff --git a/.github/workflows/license-check.yml
b/.github/workflows/license-check.yml
index 774c26c1..20661411 100644
--- a/.github/workflows/license-check.yml
+++ b/.github/workflows/license-check.yml
@@ -34,13 +34,14 @@ jobs:
check-latest: true
- uses: gradle/actions/setup-gradle@v4
- name: Check licenses with rat
- run: ./gradlew rat
+ run: ./gradlew --no-daemon rat
timeout-minutes: 60
- name: Check licenses with license plugin
- run: ./gradlew checkLicense
+ run: ./gradlew --no-daemon checkLicense
timeout-minutes: 60
- name: Upload reports
uses: actions/upload-artifact@v4
+ if: success() || failure() # always run even if the previous step fails
with:
name: build-reports
path: build/reports/
diff --git a/.github/workflows/style-check.yml
b/.github/workflows/style-check.yml
index 8a3cf82f..14bdce02 100644
--- a/.github/workflows/style-check.yml
+++ b/.github/workflows/style-check.yml
@@ -34,10 +34,11 @@ jobs:
check-latest: true
- uses: gradle/actions/setup-gradle@v4
- name: Check style with Codenarc
- run: ./gradlew codenarcMain
+ run: ./gradlew -no-daemon codenarcMain
timeout-minutes: 60
- name: Upload reports
uses: actions/upload-artifact@v4
+ if: success() || failure() # always run even if the previous step fails
with:
name: build-reports
path: '**/build/reports/'