Skip to content

Commit 541eee2

Browse files
committed
change binary name
1 parent 8a72e72 commit 541eee2

File tree

8 files changed

+32
-13
lines changed

8 files changed

+32
-13
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ name: GH Pages Deploy (Docs, mdbook)
33

44
on:
55
push:
6-
# branches:
7-
# - main
6+
branches:
7+
- main
88

99
jobs:
1010
build-deploy:

.github/workflows/release-go-module.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,11 @@ jobs:
126126
else
127127
echo "CMD_ENTRYPOINT_EXISTS=false" >> "$GITHUB_ENV"
128128
fi
129+
- name: Set the name for external CLI
130+
run: |
131+
if [ "${{ env.PACKAGE_NAME }}" == "framework" ]; then
132+
echo "PACKAGE_NAME=ctf" >> $GITHUB_ENV
133+
fi
129134
- name: Build binary release
130135
uses: wangyoucao577/go-release-action@v1
131136
if: env.CMD_ENTRYPOINT_EXISTS == 'true'

book/src/framework/first_test.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,14 @@ func TestMe(t *testing.T) {
4141
}
4242
```
4343

44-
Select your configuration by setting `CTF_CONFIGS=smoke.toml` and run it
44+
Run the test
4545
```bash
46-
go test -v -run TestMe
46+
CTF_CONFIGS=smoke.toml go test -v -run TestMe
47+
```
48+
49+
Remove containers
50+
```
51+
ctf d rm
4752
```
4853

4954
Summary:

book/src/framework/getting_started.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# Getting started
1+
# 🚀 Getting started
22

33
## Prerequisites
4-
- `Docker` ([OrbStack](https://orbstack.dev/) or [Docker Desktop](https://www.docker.com/products/docker-desktop/))
4+
- `Docker` [OrbStack](https://orbstack.dev/) or [Docker Desktop](https://www.docker.com/products/docker-desktop/), we recommend OrbStack (faster, smaller memory footprint)
55
- [Golang](https://go.dev/doc/install)
66

77
## Test setup
@@ -11,18 +11,19 @@ To start writing tests create a directory for your project with `go.mod` and pul
1111
go get github.com/smartcontractkit/chainlink-testing-framework/framework
1212
```
1313

14-
Then download the CLI (runs from directory where you have `go.mod`)
14+
Then download the CLI (runs from the directory where you have `go.mod`)
1515
```
1616
go get github.com/smartcontractkit/chainlink-testing-framework/framework/cmd && \
1717
go install github.com/smartcontractkit/chainlink-testing-framework/framework/cmd && \
1818
mv ~/go/bin/cmd ~/go/bin/ctf
1919
```
20+
Or download a binary release [here](https://github.com/smartcontractkit/chainlink-testing-framework/releases/tag/framework%2Fv0.1.7) and rename it to `ctf`
21+
2022
More CLI [docs](./cli.md)
2123

22-
Create an `.envrc` file and put common parameters there (you can use [direnv](https://direnv.net/) to sync them more easily)
24+
Create an `.envrc` file and do `source .envrc`
2325
```
2426
export TESTCONTAINERS_RYUK_DISABLED=true # do not remove containers while we develop locally
25-
export CTF_CONFIGS=smoke.toml # our configuration file
2627
```
2728

2829
Now you are ready to write your [first test](./first_test.md)
@@ -35,8 +36,10 @@ Spin up your local obserability stack (Grafana LGTM)
3536
```
3637
ctf obs up
3738
```
39+
More [docs](observability/observability_stack.md)
3840

3941
Spin up your `Blockscout` stack
4042
```
4143
ctf bs up
4244
```
45+
More [docs](observability/blockscout.md)

book/src/framework/nodeset_capabilities.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
Let's use some external capability binaries in our tests and extend the [previous one](nodeset_environment.md).
44

5+
We'll use a private repository example, so you should be authorized with [gh]()
6+
```
7+
gh auth login
8+
gh auth setup-git
9+
```
10+
511
Download an example capability binary
612
```
713
export export GOPRIVATE=github.com/smartcontractkit/capabilities
@@ -41,7 +47,7 @@ Create a configuration file `smoke.toml`
4147

4248
Run it
4349
```bash
44-
go test -v -run TestNodeSet
50+
CTF_CONFIGS=smoke.toml go test -v -run TestNodeSet
4551
```
4652

4753
Now you can configure your capability using `clclient.CreateJobRaw($raw_toml)`.

book/src/framework/nodeset_compatibility.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ You can reuse `smoke_test.go` from previous [setup](nodeset_environment.md)
8282

8383
Run it
8484
```bash
85-
go test -v -run TestNodeSet
85+
CTF_CONFIGS=smoke.toml go test -v -run TestNodeSet
8686
```
8787

8888
Summary:

book/src/framework/nodeset_environment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func TestNodeSet(t *testing.T) {
6969

7070
Run it
7171
```bash
72-
go test -v -run TestNodeSet
72+
CTF_CONFIGS=smoke.toml go test -v -run TestNodeSet
7373
```
7474

7575
You'll see something like, use any URL to access CL node

book/src/framework/nodeset_external.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export CTF_CONFIGS=smoke.toml,smoke-fuji.toml
2828

2929
Run it
3030
```bash
31-
go test -v -run TestNodeSet
31+
CTF_CONFIGS=smoke.toml go test -v -run TestNodeSet
3232
```
3333

3434
Summary:

0 commit comments

Comments
 (0)