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