-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
62 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ on: | |
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
contract-bindings: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: styfle/[email protected] | ||
|
@@ -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 | ||
|
@@ -29,6 +32,8 @@ jobs: | |
- uses: actions/checkout@v4 | ||
name: Checkout Repository | ||
with: | ||
submodules: recursive | ||
|
||
- name: Generate Bindings | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ on: | |
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: styfle/[email protected] | ||
|
@@ -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 | ||
|
@@ -35,8 +40,5 @@ jobs: | |
go mod tidy | ||
git diff --exit-code | ||
- name: Lint | ||
run: just lint | ||
|
||
- name: Test | ||
run: just test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters