forked from hyperledger/besu
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: grapebaba <[email protected]>
- Loading branch information
Showing
21 changed files
with
449 additions
and
15 deletions.
There are no files selected for viewing
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: capture_test_logs | ||
description: "Capture test logs" | ||
runs: | ||
using: composite | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
path: acceptance-tests/tests/build/acceptanceTestLogs | ||
- uses: actions/[email protected] | ||
with: | ||
path: acceptance-tests/tests/build/jvmErrorLogs |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: capture_test_results | ||
description: "Capture test results" | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Jacoco | ||
run: "./gradlew --no-daemon jacocoTestReport" | ||
shell: bash | ||
- name: Gather test results | ||
run: |- | ||
FILES=`find . -name test-results` | ||
for FILE in $FILES | ||
do | ||
MODULE=`echo "$FILE" | sed -e 's@./\(.*\)/build/test-results@\1@'` | ||
TARGET="build/test-results/$MODULE" | ||
mkdir -p "$TARGET" | ||
cp -rf ${FILE}/*/* "$TARGET" | ||
done | ||
if: always() | ||
shell: bash | ||
- uses: actions/[email protected] | ||
with: | ||
path: build/test-results | ||
- uses: actions/[email protected] | ||
with: | ||
path: besu/build/reports/jacoco |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: prepare | ||
description: "Prepare the environment for the build" | ||
runs: | ||
using: composite | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Install Packages - LibSodium, nssdb | ||
shell: bash | ||
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 | ||
java --version | ||
- uses: "./.github/actions/restore_gradle_cache" |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: restore_gradle_cache | ||
description: "Restore the gradle cache" | ||
runs: | ||
using: composite | ||
steps: | ||
- name: restore_cache | ||
uses: actions/[email protected] | ||
with: | ||
key: deps-{{ checksum "gradle/versions.gradle" }}-{{ .Branch }}-{{ .Revision }} | ||
path: UPDATE_ME | ||
restore-keys: |- | ||
deps-{{ checksum "gradle/versions.gradle" }}-{{ .Branch }}-{{ .Revision }} | ||
deps-{{ checksum "gradle/versions.gradle" }} | ||
deps- |
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#name: nightly | ||
#on: | ||
# schedule: | ||
# - cron: 0 19 * * * | ||
# # 'filters' was not transformed because there is no suitable equivalent in GitHub Actions | ||
#jobs: | ||
# assemble: | ||
# runs-on: ubuntu-latest | ||
# container: | ||
# image: openjdk:17.0 | ||
# steps: | ||
# - uses: actions/[email protected] | ||
# - uses: "./.github/actions/prepare" | ||
# - name: Assemble | ||
# run: "./gradlew --no-daemon clean compileJava compileTestJava assemble" | ||
# - name: save_cache | ||
# uses: actions/[email protected] | ||
# with: | ||
# path: |- | ||
# .gradle | ||
# ~/.gradle | ||
# key: deps-{{ checksum "gradle/versions.gradle" }}-{{ .Branch }}-{{ .Revision }} | ||
# - uses: actions/[email protected] | ||
# with: | ||
# path: "~/project/./" | ||
# - uses: actions/[email protected] | ||
# with: | ||
# path: build/distributions | ||
# dockerScan: | ||
# runs-on: ubuntu-latest | ||
# container: | ||
# image: docker:stable-git | ||
# steps: | ||
# - uses: actions/[email protected] | ||
# - uses: "./.github/actions/restore_gradle_cache" | ||
## # 'setup_remote_docker' was not transformed because there is no suitable equivalent in GitHub Actions | ||
# - name: Install trivy | ||
# run: |- | ||
# apk add --update-cache --upgrade curl bash | ||
# curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin | ||
# - name: Scan with trivy | ||
# run: |- | ||
# for FILE in $(ls docker) | ||
# do | ||
# if [[ $FILE == "test.sh" || $FILE == "tests" ]]; then | ||
# continue | ||
# fi | ||
# docker pull -q "hyperledger/besu:develop-$FILE" | ||
# trivy -q image --exit-code 1 --no-progress --severity HIGH,CRITICAL "hyperledger/besu:develop-$FILE" | ||
# done | ||
# shell: "/bin/sh" |
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.