From f2e23ae3e1e9e93b8b42a5f00d087a530e353aff Mon Sep 17 00:00:00 2001 From: Cody Littley Date: Wed, 7 Aug 2024 11:18:56 -0500 Subject: [PATCH 1/6] Added badge for current actions. Signed-off-by: Cody Littley --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 11f36566..bdc71137 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +![Actions](https://github.com/Layr-Labs/eigenda-proxy/actions/workflows/actions.yml/badge.svg) + # EigenDA Sidecar Proxy ## Introduction From d752e5ad1c5dc26d5a7614718fc2561330737169 Mon Sep 17 00:00:00 2001 From: Cody Littley Date: Wed, 7 Aug 2024 11:28:16 -0500 Subject: [PATCH 2/6] Split actions into smaller workflows. Signed-off-by: Cody Littley --- .github/workflows/build.yml | 21 ++++++++++++++++++ .github/workflows/go-sec.yml | 20 +++++++++++++++++ .github/workflows/go-test.yml | 35 ++++++++++++++++++++++++++++++ .github/workflows/holesky-test.yml | 30 +++++++++++++++++++++++++ 4 files changed, 106 insertions(+) create mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/go-sec.yml create mode 100644 .github/workflows/go-test.yml create mode 100644 .github/workflows/holesky-test.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..c31b22ba --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,21 @@ +name: build + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.21 + + - name: Build App + run: make eigenda-proxy \ No newline at end of file diff --git a/.github/workflows/go-sec.yml b/.github/workflows/go-sec.yml new file mode 100644 index 00000000..273b137e --- /dev/null +++ b/.github/workflows/go-sec.yml @@ -0,0 +1,20 @@ +name: go-sec + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + go-sec: + runs-on: ubuntu-latest + env: + GO111MODULE: on + steps: + - name: Checkout Source + uses: actions/checkout@v3 + - name: Run Gosec Security Scanner + uses: securego/gosec@master + with: + args: ./... diff --git a/.github/workflows/go-test.yml b/.github/workflows/go-test.yml new file mode 100644 index 00000000..a922d262 --- /dev/null +++ b/.github/workflows/go-test.yml @@ -0,0 +1,35 @@ +name: go-test + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + go-test: + outputs: + COVERAGE: ${{ steps.unit.outputs.coverage }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + submodules: true + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.21 + + - name: Install project dependencies + run: | + go mod download + + - name: Run Unit Tests + id: unit + run: | + make test + + - name: Run E2E Tests + run: | + make e2e-test diff --git a/.github/workflows/holesky-test.yml b/.github/workflows/holesky-test.yml new file mode 100644 index 00000000..c119501e --- /dev/null +++ b/.github/workflows/holesky-test.yml @@ -0,0 +1,30 @@ +name: actions + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + holesky-test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + submodules: true + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.21 + + - name: Install project dependencies + run: | + go mod download + - name: Run holesky tests + env: + SIGNER_PRIVATE_KEY: ${{ secrets.SIGNER_PRIVATE_KEY }} + ETHEREUM_RPC: ${{ secrets.ETHEREUM_RPC }} + run: | + SIGNER_PRIVATE_KEY=$SIGNER_PRIVATE_KEY ETHEREUM_RPC=$ETHEREUM_RPC make holesky-test \ No newline at end of file From a45098e126c77b070f101d644b8a4bf50fdc2526 Mon Sep 17 00:00:00 2001 From: Cody Littley Date: Wed, 7 Aug 2024 11:28:56 -0500 Subject: [PATCH 3/6] Remove omnibus actions workflow. Signed-off-by: Cody Littley --- .github/workflows/actions.yml | 83 ----------------------------------- 1 file changed, 83 deletions(-) delete mode 100644 .github/workflows/actions.yml diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml deleted file mode 100644 index 9c1ad4ac..00000000 --- a/.github/workflows/actions.yml +++ /dev/null @@ -1,83 +0,0 @@ -# Go test workflow -name: actions - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - - name: Set up Go - uses: actions/setup-go@v3 - with: - go-version: 1.21 - - - name: Build App - run: make eigenda-proxy - - go-test: - outputs: - COVERAGE: ${{ steps.unit.outputs.coverage }} - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - submodules: true - - - name: Set up Go - uses: actions/setup-go@v3 - with: - go-version: 1.21 - - - name: Install project dependencies - run: | - go mod download - - - name: Run Unit Tests - id: unit - run: | - make test - - - name: Run E2E Tests - run: | - make e2e-test - - gosec: - runs-on: ubuntu-latest - env: - GO111MODULE: on - steps: - - name: Checkout Source - uses: actions/checkout@v3 - - name: Run Gosec Security Scanner - uses: securego/gosec@master - with: - args: ./... - - holesky-test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - submodules: true - - - name: Set up Go - uses: actions/setup-go@v3 - with: - go-version: 1.21 - - - name: Install project dependencies - run: | - go mod download - - name: Run holesky tests - env: - SIGNER_PRIVATE_KEY: ${{ secrets.SIGNER_PRIVATE_KEY }} - ETHEREUM_RPC: ${{ secrets.ETHEREUM_RPC }} - run: | - SIGNER_PRIVATE_KEY=$SIGNER_PRIVATE_KEY ETHEREUM_RPC=$ETHEREUM_RPC make holesky-test \ No newline at end of file From c709fc7bbdf6c3f307e58833fb90969e79843f8e Mon Sep 17 00:00:00 2001 From: Cody Littley Date: Wed, 7 Aug 2024 11:29:32 -0500 Subject: [PATCH 4/6] Fixed holesky test name Signed-off-by: Cody Littley --- .github/workflows/holesky-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/holesky-test.yml b/.github/workflows/holesky-test.yml index c119501e..2d22878a 100644 --- a/.github/workflows/holesky-test.yml +++ b/.github/workflows/holesky-test.yml @@ -1,4 +1,4 @@ -name: actions +name: holesky-test on: push: From 52400e3636fc87e6d232dfda3d6aaac270380036 Mon Sep 17 00:00:00 2001 From: Cody Littley Date: Wed, 7 Aug 2024 11:51:02 -0500 Subject: [PATCH 5/6] Updated readme with more badges. Signed-off-by: Cody Littley --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bdc71137..42fefca9 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,7 @@ -![Actions](https://github.com/Layr-Labs/eigenda-proxy/actions/workflows/actions.yml/badge.svg) +![Compiles](https://github.com/Layr-Labs/eigenda-proxy/actions/workflows/build.yml/badge.svg) +![Linter](https://github.com/Layr-Labs/eigenda-proxy/actions/workflows/go-sec.yml/badge.svg) +![Unit Tests](https://github.com/Layr-Labs/eigenda-proxy/actions/workflows/go-test.yml/badge.svg) +![Integration Tests](https://github.com/Layr-Labs/eigenda-proxy/actions/workflows/holesky-test.yml/badge.svg) # EigenDA Sidecar Proxy From da207546a19406f36aa98d0d5cadba64e3bdef2b Mon Sep 17 00:00:00 2001 From: Cody Littley Date: Wed, 7 Aug 2024 11:54:44 -0500 Subject: [PATCH 6/6] Rename some things. Signed-off-by: Cody Littley --- .github/workflows/{go-sec.yml => gosec.yml} | 2 +- .github/workflows/{go-test.yml => unit-tests.yml} | 2 +- README.md | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) rename .github/workflows/{go-sec.yml => gosec.yml} (96%) rename .github/workflows/{go-test.yml => unit-tests.yml} (97%) diff --git a/.github/workflows/go-sec.yml b/.github/workflows/gosec.yml similarity index 96% rename from .github/workflows/go-sec.yml rename to .github/workflows/gosec.yml index 273b137e..d6d7dac9 100644 --- a/.github/workflows/go-sec.yml +++ b/.github/workflows/gosec.yml @@ -1,4 +1,4 @@ -name: go-sec +name: gosec on: push: diff --git a/.github/workflows/go-test.yml b/.github/workflows/unit-tests.yml similarity index 97% rename from .github/workflows/go-test.yml rename to .github/workflows/unit-tests.yml index a922d262..e4e0c10d 100644 --- a/.github/workflows/go-test.yml +++ b/.github/workflows/unit-tests.yml @@ -1,4 +1,4 @@ -name: go-test +name: unit-tests on: push: diff --git a/README.md b/README.md index 42fefca9..317b5add 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ![Compiles](https://github.com/Layr-Labs/eigenda-proxy/actions/workflows/build.yml/badge.svg) -![Linter](https://github.com/Layr-Labs/eigenda-proxy/actions/workflows/go-sec.yml/badge.svg) -![Unit Tests](https://github.com/Layr-Labs/eigenda-proxy/actions/workflows/go-test.yml/badge.svg) +![Unit Tests](https://github.com/Layr-Labs/eigenda-proxy/actions/workflows/unit-tests.yml/badge.svg) +![Linter](https://github.com/Layr-Labs/eigenda-proxy/actions/workflows/gosec.yml/badge.svg) ![Integration Tests](https://github.com/Layr-Labs/eigenda-proxy/actions/workflows/holesky-test.yml/badge.svg) # EigenDA Sidecar Proxy