-
Notifications
You must be signed in to change notification settings - Fork 9
7903857: apidiff: Include test run in GitHub Actions workflow #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
sormuras
wants to merge
11
commits into
openjdk:master
from
sormuras:CODETOOLS-7903857-run-tests-on-windows
Closed
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
49fd0e5
CODETOOLS-7903857: apidiff: Include test run in GitHub Actions workflow
sormuras f68c3e3
Remove `set -o pipefail` from test run
sormuras 50ba912
Find `wget[.exe]` on Windows
sormuras db26237
Try other MSYS2 installation path
sormuras 0b4f659
Move environment preparation
sormuras ea000c8
Use correct shell
sormuras eef77a5
Split workflow into dedicated workflows per platform
sormuras 839fa74
Use msys2 shell by default
sormuras 112220e
Keep text file line-ending intact
sormuras fac5d77
Configure git early
sormuras b8a7e5f
Fix shell
sormuras File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| name: 'Test (linux)' | ||
|
|
||
| on: | ||
| workflow_call: | ||
|
|
||
| jobs: | ||
| test: | ||
| name: 'ApiDiff' | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| fail-fast: false | ||
| steps: | ||
| - name: 'Check out repository' | ||
| uses: actions/checkout@v4 | ||
| - name: 'Set up Java Development Kit' | ||
| uses: oracle-actions/setup-java@v1 | ||
| with: | ||
| website: oracle.com | ||
| release: 17 | ||
| - name: 'Build ApiDiff' | ||
| shell: bash | ||
| run: bash make/build.sh | ||
| - name: 'Test ApiDiff' | ||
| shell: bash | ||
| run: bash make/build.sh --skip-download -- test | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| name: 'Test (windows)' | ||
|
|
||
| on: | ||
| workflow_call: | ||
|
|
||
| env: | ||
| MSYS2_PATH_TYPE: minimal | ||
| CHERE_INVOKING: 1 | ||
|
|
||
| jobs: | ||
| test: | ||
| name: 'ApiDiff' | ||
| runs-on: windows-latest | ||
| strategy: | ||
| fail-fast: false | ||
| steps: | ||
| - name: 'Keep text file line-ending intact' | ||
| run: git config --global core.autocrlf input | ||
| - name: 'Check out repository' | ||
| uses: actions/checkout@v4 | ||
| - name: 'Install MSYS2' | ||
| uses: msys2/setup-msys2@v2.22.0 | ||
| with: | ||
| install: 'autoconf tar unzip zip make' | ||
| path-type: minimal | ||
| - name: 'Set up Java Development Kit' | ||
| uses: oracle-actions/setup-java@v1 | ||
| with: | ||
| website: oracle.com | ||
| release: 17 | ||
| - name: 'Build ApiDiff' | ||
| shell: msys2 {0} | ||
| run: bash make/build.sh | ||
| - name: 'Test ApiDiff' | ||
| shell: msys2 {0} | ||
| run: bash make/build.sh --skip-download -- test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.