-
Notifications
You must be signed in to change notification settings - Fork 860
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
try more runners and less downloading
Signed-off-by: Justin Florentine <[email protected]>
- Loading branch information
Showing
1 changed file
with
7 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ env: | |
|
||
jobs: | ||
runner-indexes: | ||
runs-on: besu-research-ubuntu-16 | ||
runs-on: [ besu-research-ubuntu-16, besu-research-ubuntu-8 ] | ||
name: Generate runner indexes | ||
outputs: | ||
json: ${{ steps.generate-index-list.outputs.json }} | ||
|
@@ -22,7 +22,7 @@ jobs: | |
INDEX_JSON=$(jq --null-input --compact-output '. |= [inputs]' <<< ${INDEX_LIST}) | ||
echo "::set-output name=json::${INDEX_JSON}" | ||
acceptanceTestEthereum: | ||
runs-on: besu-research-ubuntu-16 | ||
runs-on: [ besu-research-ubuntu-16, besu-research-ubuntu-8 ] | ||
name: "Acceptance Runner #${{ matrix.runner-index }}: Run acceptance tests in parallel" | ||
needs: | ||
- runner-indexes | ||
|
@@ -32,13 +32,6 @@ jobs: | |
matrix: | ||
runner-index: ${{ fromjson(needs.runner-indexes.outputs.json) }} | ||
steps: | ||
- name: export runner UID | ||
run: echo "runner_uid=$UID" >> $GITHUB_ENV | ||
- name: install native packages | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libsodium23 libsodium-dev libjemalloc-dev apt-transport-https haveged libnss3-tools | ||
sudo service haveged restart | ||
- name: Checkout Repo | ||
uses: actions/checkout@v3 | ||
- name: Set up Java | ||
|
@@ -47,11 +40,12 @@ jobs: | |
distribution: adopt | ||
java-version: 17 | ||
cache: gradle | ||
- name: Restore classes | ||
uses: actions/cache@v3 | ||
- name: Compile | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
path: "**/*.class" | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ github.sha }} | ||
gradle-home-cache-cleanup: true | ||
cache-read-only: false | ||
arguments: compileJava compileTestJava -Dorg.gradle.parallel=true | ||
- name: Split tests | ||
id: split-tests | ||
uses: chaosaffe/[email protected] | ||
|
@@ -72,10 +66,6 @@ jobs: | |
run: ./gradlew acceptanceTest --tests `cat gradleArgs.txt` | ||
- name: cleanup tempfiles | ||
run: rm testList.txt gradleArgs.txt | ||
- name: Correct Ownership in GITHUB_WORKSPACE directory | ||
uses: peter-murray/reset-workspace-ownership-action@v1 | ||
with: | ||
user_id: ${{ env.runner_uid }} | ||
- name: Upload Test Report | ||
uses: actions/upload-artifact@v3 | ||
if: always() # always run even if the previous step fails | ||
|