-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate Workflows to use Node 20 (#1847)
* update actions to use node 20 * update download-artifact action to v3, added env * update gradle-build action
- Loading branch information
1 parent
402ecf2
commit a844a91
Showing
20 changed files
with
82 additions
and
80 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 |
---|---|---|
|
@@ -28,13 +28,13 @@ jobs: | |
java-version: [8, 11, 17, 21] | ||
steps: | ||
- name: Checkout Java agent | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.agent-ref || github.ref || 'main' }} | ||
|
||
- name: Configure AWS Credentials | ||
if: ${{ env.AWS_KEY != '' }} | ||
uses: aws-actions/configure-aws-credentials@v1-node16 | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
|
@@ -63,15 +63,15 @@ jobs: | |
|
||
- name: Upload coverage to Codecov | ||
if: matrix.java-version == '17' | ||
uses: codecov/codecov-action@v3 | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: '**/build/reports/jacoco/test/jacocoTestReport.xml' | ||
fail_ci_if_error: false #default is false, but being explicit about what to expect. | ||
|
||
- name: Capture Jacoco reports | ||
if: matrix.java-version == '17' | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: non-forked-jacoco-reports-java-${{ matrix.java-version }} | ||
path: | | ||
|
@@ -80,7 +80,7 @@ jobs: | |
- name: Capture build reports (non forked) | ||
# If previous step fails, run this step regardless | ||
if: failure() | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: non-forked-tests-results-java-${{ matrix.java-version }} | ||
# The regex for the path below will capture unit test HTML reports generated by gradle for all | ||
|
@@ -111,23 +111,23 @@ jobs: | |
|
||
- name: Upload coverage to Codecov | ||
if: matrix.java-version == '17' | ||
uses: codecov/codecov-action@v3 | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: '**/build/reports/jacoco/test/jacocoTestReport.xml' | ||
fail_ci_if_error: false #default is false, but being explicit about what to expect. | ||
|
||
- name: Capture Jacoco reports | ||
if: matrix.java-version == '17' | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: forked-jacoco-reports-java-${{ matrix.java-version }} | ||
path: | | ||
**/build/reports/jacoco/** | ||
- name: Capture build reports (forked) | ||
if: failure() | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: forked-tests-results-java-${{ matrix.java-version }} | ||
# The regex for the path below will capture unit test HTML reports generated by gradle for all | ||
|
@@ -139,7 +139,7 @@ jobs: | |
- name: Checkout GhPages branch | ||
if: ${{ failure() }} | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: 'gh-pages' | ||
path: 'gh-pages' | ||
|
@@ -152,14 +152,14 @@ jobs: | |
- name: Download test reports Java ${{ matrix.java-version }} | ||
if: ${{ failure() }} | ||
uses: actions/download-artifact@v3 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: unit-tests-results-java-${{ matrix.java-version }} | ||
path: gh-pages/reports/${{ inputs.agent-ref }}/${{ github.run_id }}/unit-tests-results-java-${{ matrix.java-version }} | ||
|
||
- name: Set up Python | ||
if: ${{ failure() }} | ||
uses: actions/setup-python@v3 | ||
uses: actions/setup-python@v5 | ||
|
||
#This step executes a Python script that reads and writes html. | ||
#The script requires the beautifulsoup dependency, which parses html. | ||
|
@@ -187,7 +187,7 @@ jobs: | |
steps: | ||
|
||
- name: Checkout GhPages branch | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: 'gh-pages' | ||
path: 'gh-pages' | ||
|
@@ -198,7 +198,7 @@ jobs: | |
git config --global user.email "[email protected]" | ||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
uses: actions/setup-python@v5 | ||
|
||
- name: Generate Index Pages | ||
run: | | ||
|
This file contains 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 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 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 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
Oops, something went wrong.