Skip to content
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

feat:add op tx type #2

Merged
merged 2 commits into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
11 changes: 11 additions & 0 deletions .github/actions/capture_test_logs/action.yml
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
26 changes: 26 additions & 0 deletions .github/actions/capture_test_results/action.yml
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
14 changes: 14 additions & 0 deletions .github/actions/prepare/action.yml
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"
14 changes: 14 additions & 0 deletions .github/actions/restore_gradle_cache/action.yml
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-
51 changes: 51 additions & 0 deletions .github/nightly.yml
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"
6 changes: 3 additions & 3 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: checks
on:
push:
branches: [ main ]
branches: [ release-23.10.x, main ]
pull_request:
workflow_dispatch:

jobs:
spotless:
runs-on: [besu-research-ubuntu-16]
runs-on: ubuntu-latest
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- name: Checkout Repo
Expand All @@ -21,7 +21,7 @@ jobs:
- name: spotless
run: ./gradlew --no-daemon --parallel clean spotlessCheck
javadoc_17:
runs-on: [besu-research-ubuntu-8]
runs-on: ubuntu-latest
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- name: Checkout Repo
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ name: "CodeQL"

on:
push:
branches: [ main ]
branches: [ release-23.10.x, main ]
pull_request:
branches: [ main ]
branches: [ release-23.10.x, main ]
paths-ignore:
- '**/*.json'
- '**/*.md'
Expand All @@ -24,7 +24,7 @@ on:
jobs:
analyze:
name: Analyze
runs-on: [besu-research-ubuntu-16]
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dco-merge-group.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:

jobs:
dco:
runs-on: [besu-research-ubuntu-8]
runs-on: ubuntu-latest
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- run: echo "This DCO job runs on merge_queue event and doesn't check PR contents"
2 changes: 1 addition & 1 deletion .github/workflows/dco.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
dco:
runs-on: [besu-research-ubuntu-8]
runs-on: ubuntu-latest
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- run: echo "This DCO job runs on pull_request event and workflow_dispatch"
Expand Down
Loading
Loading