Skip to content

Merge pull request #2 from flashbots/caner/rbuilder-reth2-testing #12

Merge pull request #2 from flashbots/caner/rbuilder-reth2-testing

Merge pull request #2 from flashbots/caner/rbuilder-reth2-testing #12

Workflow file for this run

name: ci
on:
push:
branches: [main]
pull_request:
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: Lint
run: deno lint
- name: Type-check
run: deno check $(git ls-files '*.ts')
e2e:
# Upstream only: forks (and people vibehacking their clone) skip this so the
# heavier suite isn't a burden. PRs against flashbots/decker still run it,
# because `github.repository` is the base repo for pull_request events.
if: github.repository == 'flashbots/decker'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: Compile binary
run: make compile OUTPUT=decker
- name: Start podman API socket
# The podman renderer mounts the rootless API socket (for Dozzle); the
# runner doesn't start it by default. Best-effort — the launch test
# skips itself if the socket still isn't up, so this can't wedge CI.
run: |
systemctl --user enable --now podman.socket || true
podman info --format 'socket={{.Host.RemoteSocket.Path}} exists={{.Host.RemoteSocket.Exists}}' || true
- name: E2E
# Test the real compiled artifact, the way users run it.
env:
DECKER_BIN: ${{ github.workspace }}/decker
run: deno test -A e2e/