Skip to content

Commit

Permalink
Merge branch 'main' into parallelize-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaRedHand authored Jan 22, 2025
2 parents 26552ff + 792ef30 commit bf11d0b
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 30 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,7 @@ env:
GO_VERSION: '1.22.4'

jobs:
lint:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v6
with:
working-directory: ./cli
version: latest

test:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Run go test
working-directory: ./cli
run: go test -v ./...

release:
needs: [lint, test]
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
Expand Down
20 changes: 16 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,29 @@ Also, only contracts inside foundry projects are supported as of now.

For development, we require [the `go` toolchain to be installed](https://go.dev/doc/install).

## How to install

### Using `go` toolchain

To install the devnet using the `go` toolchain:

```sh
go install github.com/Layr-Labs/avs-devnet/cmd/avs-devnet
```

> [!IMPORTANT]
> To be able to [install the CLI via `go`](#installation), you'll need to add `$HOME/go/bin` to your `PATH`.
> You can do so by adding to your `~/.bashrc` (or the equivalent for your shell) the following line:
> To be able to use the CLI when installed via `go`, you'll need to add `GOBIN` (by default `$HOME/go/bin`) to your `PATH`.
> You can do so by adding to your `~/.bashrc`, or the equivalent for your shell, the following line:
>
> ```bash
> export PATH="$PATH:$HOME/go/bin"
> ```
>
> More information [on the Go wiki](https://go.dev/wiki/GOPATH).
## Installation
### With a local copy of the repo
To build and install the CLI locally, run:
To build and install the CLI with a local copy of the repo, first clone the repo, and then run:
```sh
make deps # installs dependencies
Expand Down
2 changes: 2 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ To release a new version of the CLI, follow the steps below:
> [!WARNING]
> You need to have write permission to this repo to release a new version
- [ ] Check the last CI run on `main` succeeded.

- [ ] Checkout `main` and pull the latest changes:

```sh
Expand Down
2 changes: 1 addition & 1 deletion src/cmds/flags/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "github.com/urfave/cli/v2"
// TODO: move to constants.
//
//nolint:gochecknoglobals // this is a constant
var DefaultKurtosisPackage string = ""
var DefaultKurtosisPackage string = "github.com/Layr-Labs/avs-devnet/kurtosis_package"

//nolint:gochecknoglobals // these are constants
var (
Expand Down

0 comments on commit bf11d0b

Please sign in to comment.