Skip to content

Commit

Permalink
Split actions into smaller workflows.
Browse files Browse the repository at this point in the history
Signed-off-by: Cody Littley <[email protected]>
  • Loading branch information
cody-littley committed Aug 7, 2024
1 parent f2e23ae commit d752e5a
Show file tree
Hide file tree
Showing 4 changed files with 106 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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
20 changes: 20 additions & 0 deletions .github/workflows/go-sec.yml
Original file line number Diff line number Diff line change
@@ -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: ./...
35 changes: 35 additions & 0 deletions .github/workflows/go-test.yml
Original file line number Diff line number Diff line change
@@ -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
30 changes: 30 additions & 0 deletions .github/workflows/holesky-test.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d752e5a

Please sign in to comment.