Skip to content

Commit

Permalink
Merge branch 'develop' into BLADE-64-Deploy-AA-contracts-on-Blade
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan-Ethernal committed Apr 30, 2024
2 parents 35161a0 + a840725 commit 02d3972
Show file tree
Hide file tree
Showing 264 changed files with 12,969 additions and 4,168 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/benchmark-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: Benchmark Tests
on: # yamllint disable-line rule:truthy
workflow_call:
outputs:
workflow_output:
description: Benchmark Tests output
value: ${{ jobs.benchmark_test.outputs.test_output_failure }}

jobs:
benchmark_test:
name: Run Benchmark Tests
runs-on: ubuntu-latest
outputs:
test_output_failure: ${{ steps.run_tests_failure.outputs.test_output }}
steps:
- name: Checkout Code
uses: actions/[email protected]
with:
submodules: recursive
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Setup Go
uses: actions/[email protected]
with:
go-version: 1.21.x
- name: Run Go Test
run: make benchmark-test
- name: Run Go Test Failed
if: failure()
id: run_tests_failure
run: echo "test_output=false" >> $GITHUB_OUTPUT

8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: # yamllint disable-line rule:truthy
workflow_call:
outputs:
workflow_output:
description: "Build Blade output"
description: Build Blade output
value: ${{ jobs.go_build.outputs.build_output_failure }}

jobs:
Expand All @@ -19,7 +19,7 @@ jobs:
- name: Setup Go environment
uses: actions/[email protected]
with:
go-version: 1.20.x
go-version: 1.21.x
- name: Build Blade
run: go build -o blade -tags netgo -ldflags="-s -w -X \"github.com/${GITHUB_REPOSITORY}/versioning.Version=${GITHUB_REF_NAME}\" -X \"github.com/${GITHUB_REPOSITORY}/versioning.Commit=${GITHUB_SHA}\"" && tar -czvf blade.tar.gz blade
env:
Expand All @@ -29,7 +29,7 @@ jobs:
if: failure()
id: blade_build_failure
run: echo "build_output=false" >> $GITHUB_OUTPUT
- name: "Upload Artifact"
- name: Upload Artifact
uses: actions/[email protected]
with:
name: blade
Expand All @@ -45,7 +45,7 @@ jobs:
- name: Setup Go environment
uses: actions/[email protected]
with:
go-version: 1.20.x
go-version: 1.21.x
- name: Reproduce builds
continue-on-error: true
run: |
Expand Down
103 changes: 61 additions & 42 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,139 +8,158 @@ on: # yamllint disable-line rule:truthy
pull_request:
workflow_dispatch:
inputs:
build-blade:
build_blade:
description: Build Blade
type: boolean
default: true
lint:
description: Lint
type: boolean
default: true
unit-test:
unit_test:
description: Unit Tests
type: boolean
default: true
e2e-polybft-test:
e2e_polybft_test:
description: E2E PolyBFT Tests
type: boolean
default: true
e2e-legacy-test:
e2e_legacy_test:
description: E2E Legacy Tests
type: boolean
default: true
property-polybft-test:
property_polybft_test:
description: Property PolyBFT Tests
type: boolean
default: true
fuzz-test:
fuzz_test:
description: Fuzz Tests
type: boolean
default: true
benchmark_test:
description: Benchmark Tests
type: boolean
default: true
workflow_call:
inputs:
build-blade:
build_blade:
description: Build Blade
type: boolean
lint:
description: Lint
type: boolean
required: true
unit-test:
unit_test:
description: Unit Tests
type: boolean
required: true
e2e-polybft-test:
e2e_polybft_test:
description: E2E PolyBFT Tests
type: boolean
required: true
e2e-legacy-test:
e2e_legacy_test:
description: E2E Legacy Tests
type: boolean
required: true
property-polybft-test:
property_polybft_test:
description: Property PolyBFT Tests
type: boolean
required: true
fuzz-test:
fuzz_test:
description: Fuzz Tests
type: boolean
required: true
benchmark_test:
description: Benchmark Tests
type: boolean
required: true
outputs:
build-blade:
build_blade:
description: Build Blade output
value: ${{ jobs.build-blade.outputs.workflow_output }}
value: ${{ jobs.build_blade.outputs.workflow_output }}
lint:
description: Lint output
value: ${{ jobs.lint.outputs.workflow_output }}
unit-test:
unit_test:
description: Unit Tests output
value: ${{ jobs.unit-test.outputs.workflow_output }}
e2e-polybft-test:
value: ${{ jobs.unit_test.outputs.workflow_output }}
e2e_polybft_test:
description: E2E PolyBFT Tests output
value: ${{ jobs.e2e-polybft-test.outputs.workflow_output }}
e2e-legacy-test:
value: ${{ jobs.e2e_polybft_test.outputs.workflow_output }}
e2e_legacy_test:
description: E2E Legacy Tests output
value: ${{ jobs.e2e-legacy-test.outputs.workflow_output }}
property-polybft-test:
value: ${{ jobs.e2e_legacy_test.outputs.workflow_output }}
property_polybft_test:
description: Property PolyBFT Tests output
value: ${{ jobs.property-polybft-test.outputs.workflow_output }}
fuzz-test:
value: ${{ jobs.property_polybft_test.outputs.workflow_output }}
fuzz_test:
description: Fuzz Tests output
value: ${{ jobs.fuzz-test.outputs.workflow_output }}
value: ${{ jobs.fuzz_test.outputs.workflow_output }}
benchmark_test:
description: Benchmark Tests output
value: ${{ jobs.benchmark_test.outputs.workflow_output }}

jobs:
build-blade:
build_blade:
name: Build Blade
uses: ./.github/workflows/build.yml
if: |
inputs.build-blade ||
inputs.build_blade ||
github.event_name == 'pull_request' ||
(github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop'))
lint:
name: Lint
uses: ./.github/workflows/lint.yml
needs: build-blade
needs: build_blade
if: |
inputs.lint ||
github.event_name == 'pull_request' ||
(github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop'))
unit-test:
unit_test:
name: Unit Tests
uses: ./.github/workflows/unit-test.yml
needs: build-blade
needs: build_blade
if: |
inputs.unit-test ||
inputs.unit_test ||
github.event_name == 'pull_request' ||
(github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop'))
e2e-polybft-test:
e2e_polybft_test:
name: E2E PolyBFT Tests
uses: ./.github/workflows/e2e-polybft-test.yml
needs: build-blade
needs: build_blade
if: |
inputs.e2e-polybft-test ||
inputs.e2e_polybft_test ||
github.event_name == 'pull_request' ||
(github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop'))
e2e-legacy-test:
e2e_legacy_test:
name: E2E Legacy Tests
uses: ./.github/workflows/e2e-legacy-test.yml
needs: build-blade
needs: build_blade
if: |
inputs.e2e-legacy-test ||
inputs.e2e_legacy_test ||
github.event_name == 'pull_request' ||
(github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop'))
property-polybft-test:
property_polybft_test:
name: Property PolyBFT Tests
uses: ./.github/workflows/property-polybft-test.yml
needs: build-blade
needs: build_blade
if: |
inputs.property-polybft-test ||
inputs.property_polybft_test ||
github.event_name == 'pull_request' ||
(github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop'))
fuzz-test:
fuzz_test:
name: Fuzz Tests
uses: ./.github/workflows/fuzz-test.yml
needs: build-blade
needs: build_blade
if: |
inputs.fuzz_test ||
github.event_name == 'pull_request' ||
(github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop'))
benchmark_test:
name: Benchmark Tests
uses: ./.github/workflows/benchmark-test.yml
needs: build_blade
if: |
inputs.fuzz-test ||
inputs.benchmark_test ||
github.event_name == 'pull_request' ||
(github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop'))
5 changes: 2 additions & 3 deletions .github/workflows/cla.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,14 @@ on: # yamllint disable-line rule:truthy
- synchronize

jobs:
cla-assistant:
cla_assistant:
runs-on: ubuntu-latest
steps:
- name: "Check CLA"
- name: Check CLA
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
uses: contributor-assistant/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# the below token should have repo scope and must be manually added by you in the repository's secret
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
with:
path-to-signatures: "cla.json"
Expand Down
Loading

0 comments on commit 02d3972

Please sign in to comment.