feat:add op tx type #4
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
name: default | |
on: | |
push: | |
branches: | |
- release-23.10.x | |
- main | |
pull_request: | |
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 | |
unitTests: | |
runs-on: ubuntu-latest | |
container: | |
image: openjdk:17.0 | |
needs: | |
- assemble | |
steps: | |
- uses: actions/[email protected] | |
- uses: "./.github/actions/prepare" | |
- uses: actions/[email protected] | |
with: | |
path: "~/project" | |
- name: Build | |
run: "./gradlew --no-daemon build" | |
- uses: "./.github/actions/capture_test_results" | |
# testWindows: | |
# runs-on: windows-latest | |
# needs: | |
# - assemble | |
# steps: | |
# - uses: actions/[email protected] | |
# with: | |
# path: "~/project" | |
# - name: Unzip Windows build | |
# run: |- | |
# cd build/distributions | |
# unzip besu-*.zip -d besu-tmp | |
# cd besu-tmp | |
# mv besu-* ../besu | |
# - name: Test Besu Windows executable | |
# run: |- | |
# build\distributions\besu\bin\besu.bat --help | |
# build\distributions\besu\bin\besu.bat --version | |
referenceTests: | |
runs-on: ubuntu-latest | |
container: | |
image: openjdk:17.0 | |
needs: | |
- assemble | |
steps: | |
- uses: actions/[email protected] | |
- uses: "./.github/actions/prepare" | |
- uses: actions/[email protected] | |
with: | |
path: "~/project" | |
- name: ReferenceTests | |
run: |- | |
git submodule update --init --recursive | |
./gradlew --no-daemon referenceTest | |
- uses: "./.github/actions/capture_test_results" | |
integrationTests: | |
runs-on: ubuntu-latest | |
needs: | |
- assemble | |
steps: | |
- uses: actions/[email protected] | |
- uses: "./.github/actions/prepare" | |
- uses: actions/[email protected] | |
with: | |
path: "~/project" | |
- name: IntegrationTests | |
run: "./gradlew --no-daemon integrationTest" | |
- name: CompileJmh | |
run: "./gradlew --no-daemon compileJmh" | |
- uses: "./.github/actions/capture_test_results" | |
acceptanceTests: | |
runs-on: ubuntu-latest | |
needs: | |
- assemble | |
steps: | |
- uses: actions/[email protected] | |
- uses: "./.github/actions/prepare" | |
- uses: actions/[email protected] | |
with: | |
path: "~/project" | |
- name: AcceptanceTests (Mainnet) | |
run: |- | |
CLASSNAMES=$(circleci tests glob "acceptance-tests/tests/src/test/java/**/*.java" \ | |
| sed 's@.*/src/test/java/@@' \ | |
| sed 's@/@.@g' \ | |
| sed 's/.\{5\}$//' \ | |
| circleci tests split --split-by=timings --timings-type=classname) | |
# Format the arguments to "./gradlew test" | |
GRADLE_ARGS=$(echo $CLASSNAMES | awk '{for (i=1; i<=NF; i++) print "--tests",$i}') | |
./gradlew --no-daemon acceptanceTestMainnet $GRADLE_ARGS | |
- uses: "./.github/actions/capture_test_results" | |
- uses: "./.github/actions/capture_test_logs" | |
acceptanceTestsCliqueBft: | |
runs-on: ubuntu-latest | |
needs: | |
- assemble | |
steps: | |
- uses: actions/[email protected] | |
- uses: "./.github/actions/prepare" | |
- uses: actions/[email protected] | |
with: | |
path: "~/project" | |
- name: AcceptanceTests (Non-Mainnet) | |
run: |- | |
CLASSNAMES=$(circleci tests glob "acceptance-tests/tests/src/test/java/**/*.java" \ | |
| sed 's@.*/src/test/java/@@' \ | |
| sed 's@/@.@g' \ | |
| sed 's/.\{5\}$//' \ | |
| circleci tests split --split-by=timings --timings-type=classname) | |
# Format the arguments to "./gradlew test" | |
GRADLE_ARGS=$(echo $CLASSNAMES | awk '{for (i=1; i<=NF; i++) print "--tests",$i}') | |
./gradlew --no-daemon acceptanceTestCliqueBft $GRADLE_ARGS | |
- uses: "./.github/actions/capture_test_results" | |
- uses: "./.github/actions/capture_test_logs" | |
acceptanceTestsPrivacy: | |
runs-on: ubuntu-latest | |
needs: | |
- assemble | |
steps: | |
- uses: actions/[email protected] | |
- uses: "./.github/actions/prepare" | |
- uses: actions/[email protected] | |
with: | |
path: "~/project" | |
- name: AcceptanceTests (Non-Mainnet) | |
run: |- | |
CLASSNAMES=$(circleci tests glob "acceptance-tests/tests/src/test/java/**/*.java" \ | |
| sed 's@.*/src/test/java/@@' \ | |
| sed 's@/@.@g' \ | |
| sed 's/.\{5\}$//' \ | |
| circleci tests split --split-by=timings --timings-type=classname) | |
# Format the arguments to "./gradlew test" | |
GRADLE_ARGS=$(echo $CLASSNAMES | awk '{for (i=1; i<=NF; i++) print "--tests",$i}') | |
./gradlew --no-daemon acceptanceTestPrivacy $GRADLE_ARGS | |
- uses: "./.github/actions/capture_test_results" | |
- uses: "./.github/actions/capture_test_logs" | |
acceptanceTestsPermissioning: | |
runs-on: ubuntu-latest | |
needs: | |
- assemble | |
steps: | |
- uses: actions/[email protected] | |
- uses: "./.github/actions/prepare" | |
- uses: actions/[email protected] | |
with: | |
path: "~/project" | |
- name: AcceptanceTests (Non-Mainnet) | |
run: |- | |
CLASSNAMES=$(circleci tests glob "acceptance-tests/tests/src/test/java/**/*.java" \ | |
| sed 's@.*/src/test/java/@@' \ | |
| sed 's@/@.@g' \ | |
| sed 's/.\{5\}$//' \ | |
| circleci tests split --split-by=timings --timings-type=classname) | |
# Format the arguments to "./gradlew test" | |
GRADLE_ARGS=$(echo $CLASSNAMES | awk '{for (i=1; i<=NF; i++) print "--tests",$i}') | |
./gradlew --no-daemon acceptanceTestPermissioning $GRADLE_ARGS | |
- uses: "./.github/actions/capture_test_results" | |
- uses: "./.github/actions/capture_test_logs" | |
buildDocker: | |
runs-on: ubuntu-latest | |
container: | |
image: openjdk:17.0 | |
needs: | |
- assemble | |
steps: | |
- uses: actions/[email protected] | |
- uses: "./.github/actions/prepare" | |
- uses: actions/[email protected] | |
with: | |
path: "~/project" | |
# # 'setup_remote_docker' was not transformed because there is no suitable equivalent in GitHub Actions | |
- name: hadoLint_openjdk_17 | |
run: docker run --rm -i hadolint/hadolint < docker/openjdk-17/Dockerfile | |
- name: hadoLint_openjdk_17_debug | |
run: docker run --rm -i hadolint/hadolint < docker/openjdk-17-debug/Dockerfile | |
- name: hadoLint_openjdk_latest | |
run: docker run --rm -i hadolint/hadolint < docker/openjdk-latest/Dockerfile | |
- name: hadoLint_graalvm | |
run: docker run --rm -i hadolint/hadolint < docker/graalvm/Dockerfile | |
- name: build image | |
run: "./gradlew --no-daemon distDocker" | |
- name: test image | |
run: |- | |
mkdir -p docker/reports | |
curl -L https://github.com/aelsabbahy/goss/releases/download/v0.3.9/goss-linux-amd64 -o ./docker/tests/goss-linux-amd64 | |
./gradlew --no-daemon testDocker | |
buildArm64Docker: | |
runs-on: ubuntu-latest | |
needs: | |
- assemble | |
steps: | |
- uses: actions/[email protected] | |
- uses: "./.github/actions/prepare" | |
- uses: actions/[email protected] | |
with: | |
path: "~/project" | |
- name: hadoLint_openjdk_17 | |
run: docker run --rm -i hadolint/hadolint < docker/openjdk-17/Dockerfile | |
- name: hadoLint_openjdk_latest | |
run: docker run --rm -i hadolint/hadolint < docker/openjdk-latest/Dockerfile | |
- name: hadoLint_graalvm | |
run: docker run --rm -i hadolint/hadolint < docker/graalvm/Dockerfile | |
- name: Java_17 | |
run: |- | |
sudo apt install -q --assume-yes openjdk-17-jre-headless openjdk-17-jdk-headless | |
sudo update-java-alternatives -a | |
- name: build image | |
run: "./gradlew --no-daemon distDocker" | |
- name: test image | |
run: |- | |
mkdir -p docker/reports | |
curl -L https://github.com/aelsabbahy/goss/releases/download/v0.3.9/goss-linux-arm -o ./docker/tests/goss-linux-arm64 | |
./gradlew --no-daemon testDocker | |
# publish: | |
# if: # GitHub does not currently support regular expressions inside if conditions | |
## github.ref == 'refs/heads/main' || github.ref == 'refs/heads//^release-.*/' | |
# runs-on: ubuntu-latest | |
# container: | |
# image: openjdk:17.0 | |
# needs: | |
# - assemble | |
# - integrationTests | |
# - unitTests | |
# - acceptanceTests | |
# - referenceTests | |
# - buildDocker | |
# steps: | |
# - uses: actions/[email protected] | |
# - uses: "./.github/actions/prepare" | |
# - uses: actions/[email protected] | |
# with: | |
# path: "~/project" | |
# - name: Publish | |
# run: "./gradlew --no-daemon artifactoryPublish" | |
# publishDocker: | |
# if: # GitHub does not currently support regular expressions inside if conditions | |
## github.ref == 'refs/heads/main' || github.ref == 'refs/heads//^release-.*/' | |
# runs-on: ubuntu-latest | |
# container: | |
# image: openjdk:17.0 | |
# needs: | |
# - assemble | |
# - integrationTests | |
# - unitTests | |
# - acceptanceTests | |
# - referenceTests | |
# - buildDocker | |
# steps: | |
# - uses: actions/[email protected] | |
# - uses: "./.github/actions/prepare" | |
# - uses: actions/[email protected] | |
# with: | |
# path: "~/project" | |
## # 'setup_remote_docker' was not transformed because there is no suitable equivalent in GitHub Actions | |
# - name: Publish Docker | |
# run: |- | |
# docker login --username "${DOCKER_USER_RW}" --password "${DOCKER_PASSWORD_RW}" | |
# ./gradlew --no-daemon "-Pbranch=${{ github.ref }}" dockerUpload | |
# publishArm64Docker: | |
# if: # GitHub does not currently support regular expressions inside if conditions | |
## github.ref == 'refs/heads/main' || github.ref == 'refs/heads//^release-.*/' | |
# runs-on: ubuntu-latest | |
# needs: | |
# - integrationTests | |
# - unitTests | |
# - acceptanceTests | |
# - referenceTests | |
# - buildArm64Docker | |
# steps: | |
# - uses: actions/[email protected] | |
# - uses: "./.github/actions/prepare" | |
# - uses: actions/[email protected] | |
# with: | |
# path: "~/project" | |
# - name: Java_17 | |
# run: |- | |
# sudo apt install -q --assume-yes openjdk-17-jre-headless openjdk-17-jdk-headless | |
# sudo update-java-alternatives -a | |
# - name: Publish Docker | |
# run: |- | |
# docker login --username "${DOCKER_USER_RW}" --password "${DOCKER_PASSWORD_RW}" | |
# ./gradlew --no-daemon "-Pbranch=${{ github.ref }}" dockerUpload | |
# manifestDocker: | |
# if: # GitHub does not currently support regular expressions inside if conditions | |
## github.ref == 'refs/heads/main' || github.ref == 'refs/heads//^release-.*/' | |
# runs-on: ubuntu-latest | |
# container: | |
# image: openjdk:17.0 | |
# needs: | |
# - publishDocker | |
# - publishArm64Docker | |
# steps: | |
# - uses: actions/[email protected] | |
# - uses: "./.github/actions/prepare" | |
## # 'setup_remote_docker' was not transformed because there is no suitable equivalent in GitHub Actions | |
# - name: Create and publish docker manifest | |
# run: |- | |
# docker login --username "${DOCKER_USER_RW}" --password "${DOCKER_PASSWORD_RW}" | |
# ./gradlew --no-daemon "-Pbranch=${{ github.ref }}" --parallel manifestDocker |