Skip to content

Commit

Permalink
Skip steps that require a GDS token in PR builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
fniephaus committed Jan 16, 2025
1 parent 148deba commit 978d2ce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
components: ${{ matrix.components }}
gds-token: ${{ matrix.set-gds-token && secrets.GDS_TOKEN || '' }}
# Skip in PR builds that require a GDS token (secrets are not available in PR runs)
if: github.event_name != 'pull_request' || !matrix.set-gds-token
- name: Check environment
run: |
echo "GRAALVM_HOME: $GRAALVM_HOME"
Expand All @@ -85,13 +87,14 @@ jobs:
java --version
java --version | grep "GraalVM" || exit 34
native-image --version
if: runner.os != 'Windows'
if: runner.os != 'Windows' && (github.event_name != 'pull_request' || !matrix.set-gds-token)
- name: Check Windows environment
run: |
echo "GRAALVM_HOME: $env:GRAALVM_HOME"
echo "JAVA_HOME: $env:JAVA_HOME"
java --version
native-image --version
if: runner.os == 'Windows'
test-ce: # make sure the action works on a clean machine without building
needs: test
name: CE ${{ matrix.version }} + JDK${{ matrix.java-version }} on ${{ matrix.os }}
Expand Down

0 comments on commit 978d2ce

Please sign in to comment.