Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
130 changes: 85 additions & 45 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,58 +2,98 @@ name: CI

# The flag below may be needed if blst throws SIGILL, which happens with certain (older) CPUs
env:
CGO_CFLAGS: "-O -D__BLST_PORTABLE__"
CGO_CFLAGS: '-O -D__BLST_PORTABLE__'

on:
push:
branches: [ "master", "devnet-v3" ]
branches: ['master', 'devnet-v3']
pull_request:
branches: [ "master", "devnet-v3" ]
branches: ['master', 'devnet-v3']

jobs:
build:
test-prysm:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive

- uses: actions/setup-go@v3
with:
# go 1.19 is incompatible with the github.com/lucas-clemente/quic-go v0.27.2 dependency
go-version: '1.18'

- name: Prysm - Run pre-EIP4844 tests
run: go run ./tests/pre-4844

- name: Lodestar - Run pre-EIP4844 tests
run: go run ./tests/pre-4844 lodestar

# TODO: A bit redundant. combine this test with fee-market
- name: Run Blob transaction tests
run: go run ./tests/blobtx

- name: Run Fee market spec tests
run: go run ./tests/fee-market

- name: Run Initial sync tests
run: go run ./tests/initial-sync

- name: Collect docker logs on failure
if: failure()
uses: jwalton/gh-docker-logs@v1
with:
images: 'eip4844-interop_beacon-node-follower,eip4844-interop_beacon-node,eip4844-interop_execution-node-2,eip4844-interop_execution-node,eip4844-interop_validator-node'
dest: './logs'

- name: Tar logs
if: failure()
run: tar cvzf ./logs.tgz ./logs

- name: Upload logs to GitHub
if: failure()
uses: actions/upload-artifact@master
with:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive

- uses: actions/setup-go@v3
with:
# go 1.19 is incompatible with the github.com/lucas-clemente/quic-go v0.27.2 dependency
go-version: '1.18'

- name: Prysm - Run pre-EIP4844 tests
run: go run ./tests/pre-4844 prysm

# TODO: A bit redundant. combine this test with fee-market
- name: Prysm - Run Blob transaction tests
run: go run ./tests/blobtx prysm

- name: Prysm - Run Fee market spec tests
run: go run ./tests/fee-market prysm

- name: Prysm - Run Initial sync tests
run: go run ./tests/initial-sync prysm

- name: Collect docker logs on failure
if: failure()
uses: jwalton/gh-docker-logs@v1
with:
images: 'eip4844-interop_beacon-node-follower,eip4844-interop_beacon-node,eip4844-interop_execution-node-2,eip4844-interop_execution-node,eip4844-interop_validator-node'
dest: './logs'

- name: Tar logs
if: failure()
run: tar cvzf ./logs.tgz ./logs

- name: Upload logs to GitHub
if: failure()
uses: actions/upload-artifact@master
with:
name: logs.tgz
path: ./logs.tgz

test-lodestar:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive

- uses: actions/setup-go@v3
with:
# go 1.19 is incompatible with the github.com/lucas-clemente/quic-go v0.27.2 dependency
go-version: '1.18'

- name: Lodestar - Run pre-EIP4844 tests
run: go run ./tests/pre-4844 lodestar

# - name: Lodestar - Run Blob transaction tests
# run: go run ./tests/blobtx lodestar

# - name: Lodestar - Run Fee market spec tests
# run: go run ./tests/fee-market lodestar

# - name: Lodestar - Run Initial sync tests
# run: go run ./tests/initial-sync lodestar

- name: Collect docker logs on failure
if: failure()
uses: jwalton/gh-docker-logs@v1
with:
images: 'eip4844-interop_beacon-node-follower,eip4844-interop_beacon-node,eip4844-interop_execution-node-2,eip4844-interop_execution-node,eip4844-interop_validator-node'
dest: './logs'

- name: Tar logs
if: failure()
run: tar cvzf ./logs.tgz ./logs

- name: Upload logs to GitHub
if: failure()
uses: actions/upload-artifact@master
with:
name: logs.tgz
path: ./logs.tgz