Temporarily reduce test matrix.

This commit is contained in:
Fabio Niephaus 2022-12-12 21:17:37 +01:00
parent b400b017a5
commit 07e372e8a8
No known key found for this signature in database
GPG Key ID: F21CF5275F31DFD6

View File

@ -12,132 +12,132 @@ permissions:
contents: read contents: read
jobs: jobs:
build: # make sure build/ci work properly # build: # make sure build/ci work properly
runs-on: ubuntu-latest # runs-on: ubuntu-latest
steps: # steps:
- uses: actions/checkout@v3 # - uses: actions/checkout@v3
- run: | # - run: |
npm install # npm install
- run: | # - run: |
npm run all # npm run all
test-ce: # make sure the action works on a clean machine without building # test-ce: # make sure the action works on a clean machine without building
name: CE ${{ matrix.version }} + JDK${{ matrix.java-version }} on ${{ matrix.os }} # name: CE ${{ matrix.version }} + JDK${{ matrix.java-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }} # runs-on: ${{ matrix.os }}
strategy: # strategy:
matrix: # matrix:
version: [latest, dev] # version: [latest, dev]
java-version: ['17', '19'] # java-version: ['17', '19']
components: ['native-image'] # components: ['native-image']
os: [macos-latest, windows-latest, ubuntu-latest] # os: [macos-latest, windows-latest, ubuntu-latest]
include: # include:
- version: '22.2.0' # for update notifications # - version: '22.2.0' # for update notifications
java-version: '17' # java-version: '17'
components: 'native-image' # components: 'native-image'
os: ubuntu-18.04 # os: ubuntu-18.04
- version: '22.3.0' # - version: '22.3.0'
java-version: '11' # for JDK11 notification # java-version: '11' # for JDK11 notification
components: 'native-image' # components: 'native-image'
os: macos-11 # os: macos-11
- version: '22.3.0' # - version: '22.3.0'
java-version: '17' # java-version: '17'
components: 'native-image' # components: 'native-image'
os: windows-2022 # os: windows-2022
steps: # steps:
- uses: actions/checkout@v3 # - uses: actions/checkout@v3
- name: Run setup-graalvm action # - name: Run setup-graalvm action
uses: ./ # uses: ./
with: # with:
version: ${{ matrix.version }} # version: ${{ matrix.version }}
java-version: ${{ matrix.java-version }} # java-version: ${{ matrix.java-version }}
components: ${{ matrix.components }} # components: ${{ matrix.components }}
github-token: ${{ secrets.GITHUB_TOKEN }} # github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Check environment # - name: Check environment
run: | # run: |
echo "GRAALVM_HOME: $GRAALVM_HOME" # echo "GRAALVM_HOME: $GRAALVM_HOME"
if [[ "${{ matrix.version }}" == "dev" ]]; then # if [[ "${{ matrix.version }}" == "dev" ]]; then
[[ "$GRAALVM_HOME" == *"$RUNNER_TEMP"* ]] || exit 12 # [[ "$GRAALVM_HOME" == *"$RUNNER_TEMP"* ]] || exit 12
else # else
[[ "$GRAALVM_HOME" == *"$RUNNER_TOOL_CACHE"* ]] || exit 23 # [[ "$GRAALVM_HOME" == *"$RUNNER_TOOL_CACHE"* ]] || exit 23
fi # fi
echo "JAVA_HOME: $JAVA_HOME" # echo "JAVA_HOME: $JAVA_HOME"
java --version # java --version
java --version | grep "GraalVM CE" || exit 34 # java --version | grep "GraalVM CE" || exit 34
native-image --version # native-image --version
if: runner.os != 'Windows' # if: runner.os != 'Windows'
- name: Check Windows environment # - name: Check Windows environment
run: | # run: |
echo "GRAALVM_HOME: $env:GRAALVM_HOME" # echo "GRAALVM_HOME: $env:GRAALVM_HOME"
echo "JAVA_HOME: $env:JAVA_HOME" # echo "JAVA_HOME: $env:JAVA_HOME"
java --version # java --version
native-image --version # native-image --version
if: runner.os == 'Windows' # if: runner.os == 'Windows'
test-ee: # test-ee:
name: EE ${{ matrix.version }} + JDK${{ matrix.java-version }} on ${{ matrix.os }} # name: EE ${{ matrix.version }} + JDK${{ matrix.java-version }} on ${{ matrix.os }}
if: github.event_name != 'pull_request' # if: github.event_name != 'pull_request'
runs-on: ${{ matrix.os }} # runs-on: ${{ matrix.os }}
strategy: # strategy:
matrix: # matrix:
version: ['22.3.0', 'latest'] # version: ['22.3.0', 'latest']
java-version: ['11', '17', '19'] # java-version: ['11', '17', '19']
components: ['native-image'] # components: ['native-image']
os: [macos-latest, windows-latest, ubuntu-latest] # os: [macos-latest, windows-latest, ubuntu-latest]
steps: # steps:
- uses: actions/checkout@v3 # - uses: actions/checkout@v3
- name: Run setup-graalvm action # - name: Run setup-graalvm action
uses: ./ # uses: ./
with: # with:
version: ${{ matrix.version }} # version: ${{ matrix.version }}
gds-token: ${{ secrets.GDS_TOKEN }} # gds-token: ${{ secrets.GDS_TOKEN }}
java-version: ${{ matrix.java-version }} # java-version: ${{ matrix.java-version }}
components: ${{ matrix.components }} # components: ${{ matrix.components }}
github-token: ${{ secrets.GITHUB_TOKEN }} # github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Check environment # - name: Check environment
run: | # run: |
echo "GRAALVM_HOME: $GRAALVM_HOME" # echo "GRAALVM_HOME: $GRAALVM_HOME"
[[ "$GRAALVM_HOME" == *"$RUNNER_TOOL_CACHE"* ]] || exit 12 # [[ "$GRAALVM_HOME" == *"$RUNNER_TOOL_CACHE"* ]] || exit 12
echo "JAVA_HOME: $JAVA_HOME" # echo "JAVA_HOME: $JAVA_HOME"
java --version # java --version
java --version | grep "GraalVM EE" || exit 23 # java --version | grep "GraalVM EE" || exit 23
native-image --version # native-image --version
if: runner.os != 'Windows' # if: runner.os != 'Windows'
- name: Check Windows environment # - name: Check Windows environment
run: | # run: |
echo "GRAALVM_HOME: $env:GRAALVM_HOME" # echo "GRAALVM_HOME: $env:GRAALVM_HOME"
echo "JAVA_HOME: $env:JAVA_HOME" # echo "JAVA_HOME: $env:JAVA_HOME"
java --version # java --version
native-image --version # native-image --version
if: runner.os == 'Windows' # if: runner.os == 'Windows'
test-mandrel: # test-mandrel:
name: ${{ matrix.version }} + JDK${{ matrix.java-version }} on ${{ matrix.os }} # name: ${{ matrix.version }} + JDK${{ matrix.java-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }} # runs-on: ${{ matrix.os }}
strategy: # strategy:
matrix: # matrix:
version: ['mandrel-22.2.0.0-Final', 'mandrel-latest'] # version: ['mandrel-22.2.0.0-Final', 'mandrel-latest']
java-version: ['17'] # java-version: ['17']
os: [windows-latest, ubuntu-latest] # os: [windows-latest, ubuntu-latest]
steps: # steps:
- uses: actions/checkout@v3 # - uses: actions/checkout@v3
- name: Run setup-graalvm action # - name: Run setup-graalvm action
uses: ./ # uses: ./
with: # with:
version: ${{ matrix.version }} # version: ${{ matrix.version }}
java-version: ${{ matrix.java-version }} # java-version: ${{ matrix.java-version }}
github-token: ${{ secrets.GITHUB_TOKEN }} # github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Check environment # - name: Check environment
run: | # run: |
echo "GRAALVM_HOME: $GRAALVM_HOME" # echo "GRAALVM_HOME: $GRAALVM_HOME"
[[ "$GRAALVM_HOME" == *"$RUNNER_TOOL_CACHE"* ]] || exit 12 # [[ "$GRAALVM_HOME" == *"$RUNNER_TOOL_CACHE"* ]] || exit 12
echo "JAVA_HOME: $JAVA_HOME" # echo "JAVA_HOME: $JAVA_HOME"
java --version # java --version
native-image --version # native-image --version
if: runner.os != 'Windows' # if: runner.os != 'Windows'
- name: Check Windows environment # - name: Check Windows environment
run: | # run: |
echo "GRAALVM_HOME: $env:GRAALVM_HOME" # echo "GRAALVM_HOME: $env:GRAALVM_HOME"
echo "JAVA_HOME: $env:JAVA_HOME" # echo "JAVA_HOME: $env:JAVA_HOME"
java --version # java --version
native-image --version # native-image --version
if: runner.os == 'Windows' # if: runner.os == 'Windows'
test-native-image-msvc: test-native-image-msvc:
name: native-image on windows-latest name: native-image on windows-latest
runs-on: windows-latest runs-on: windows-latest