Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
jbearer committed Dec 11, 2023
1 parent 20e152f commit 7cac443
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 6 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/contract-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
workflow_dispatch:

jobs:
build:
contract-bindings:
runs-on: ubuntu-latest
steps:
- uses: styfle/[email protected]
Expand All @@ -21,6 +21,9 @@ jobs:
all_but_latest: true
access_token: ${{ github.token }}

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

- name: Install Just
run: |
wget https://github.com/casey/just/releases/download/1.14.0/just-1.14.0-x86_64-unknown-linux-musl.tar.gz
Expand All @@ -29,6 +32,8 @@ jobs:
- uses: actions/checkout@v4
name: Checkout Repository
with:
submodules: recursive

- name: Generate Bindings
run: |
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Lint

on:
push:
branches:
- main
- release-*
pull_request:
branches:
- main
- release-*
workflow_dispatch:

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: styfle/[email protected]
name: Cancel Outdated Builds
with:
all_but_latest: true
access_token: ${{ github.token }}

- uses: actions/checkout@v4
name: Checkout Repository

- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
10 changes: 6 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
workflow_dispatch:

jobs:
build:
test:
runs-on: ubuntu-latest
steps:
- uses: styfle/[email protected]
Expand All @@ -21,6 +21,11 @@ jobs:
all_but_latest: true
access_token: ${{ github.token }}

- name: Install Go
uses: actions/setup-go@v4
with:
go-version: '^1.21'

- name: Install Just
run: |
wget https://github.com/casey/just/releases/download/1.14.0/just-1.14.0-x86_64-unknown-linux-musl.tar.gz
Expand All @@ -35,8 +40,5 @@ jobs:
go mod tidy
git diff --exit-code
- name: Lint
run: just lint

- name: Test
run: just test
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,22 @@ This package provides tools and interfaces for working with the
[Espresso sequencer](https://github.com/EspressoSystems/espresso-sequencer) in Go. It should
(eventually) provide everything needed to integrate a rollup written in Go with the Espresso
sequencer.

## Development

- Obtain code:

git clone [email protected]:EspressoSystems/go-espresso-sequencer
git submodule update --init --recursive

- Make sure [nix](https://nixos.org/download.html) is installed.
- Activate the environment with `nix-shell`, or `nix develop`, or `direnv allow` if using [direnv](https://direnv.net/).

## Run the linter and unit tests

just lint
just test

## Generating contract bindings

just bind
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/EspressoSystems/go-espresso-sequencer

go 1.21.4
go 1.21

require (
github.com/ethereum/go-ethereum v1.13.5
Expand Down

0 comments on commit 7cac443

Please sign in to comment.