Skip to content

Bump actions/checkout from 4.1.0 to 4.1.1 #679

Bump actions/checkout from 4.1.0 to 4.1.1

Bump actions/checkout from 4.1.0 to 4.1.1 #679

Workflow file for this run

# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Test
on:
push:
branches:
- '*'
pull_request:
branches: [ master ]
jobs:
matrix_prep:
name: Matrix Preparation
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
env:
# Ask matrix.js to produce 7 jobs
MATRIX_JOBS: 7
steps:
- uses: actions/checkout@v4.1.1
with:
fetch-depth: 1
- id: set-matrix
run: |
node .github/workflows/matrix.js
build:
needs: matrix_prep
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix: ${{fromJson(needs.matrix_prep.outputs.matrix)}}
name: '${{ matrix.name }}'
env:
TZ: ${{ matrix.tz }}
steps:
- uses: actions/checkout@v4.1.1
with:
fetch-depth: 10
# Install built-in JDK
- name: 'Set up JDK ${{ matrix.jdk.version }} / ${{ matrix.jdk.distribution }}'
uses: actions/setup-java@v3
if: ${{ matrix.jdk.distribution != 'jdkfile' }}
with:
distribution: ${{ matrix.jdk.distribution }}
java-version: ${{ matrix.jdk.version }}
architecture: x64
# Install custom JDK from URL
- name: 'Download JDK ${{ matrix.jdk.distribution }} / ${{ matrix.jdk.version }} from ${{ matrix.jdk.url }}'
if: ${{ matrix.jdk.distribution == 'jdkfile' }}
run: |
jdk_url="${{ matrix.jdk.url }}"
wget -nv -O "${{ runner.temp }}/java_package.tar.gz" "${jdk_url}"
- name: 'Set up JDK ${{ matrix.jdk.version }} / ${{ matrix.jdk.url }}'
uses: actions/setup-java@v3
if: ${{ matrix.jdk.distribution == 'jdkfile' }}
with:
distribution: ${{ matrix.jdk.distribution }}
java-version: ${{ matrix.jdk.version }}
jdkFile: '${{ runner.temp }}/java_package.tar.gz'
architecture: x64
- name: 'Generate unique build id'
id: build_id
run: echo "unique_id=$(date +%s)" >> $GITHUB_OUTPUT
- name: Test
id: run_test_cases
uses: burrunan/gradle-cache-action@v1
with:
job-id: jdk${{ matrix.jdk.version }}
arguments: |
--no-parallel --no-daemon --scan
build
properties: |
testng.test.extra.jvmargs=${{ matrix.testExtraJvmArgs }}
- name: Upload build reports
if: ${{ failure() && steps.run_test_cases.outcome == 'failure' }}
uses: actions/upload-artifact@v3
with:
name: build-reports-${{ matrix.jdk.group }}-${{ matrix.jdk.version }}-${{ steps.build_id.outputs.unique_id }}
path: testng-core/build/reports/tests/test/**