-
Notifications
You must be signed in to change notification settings - Fork 1
72 lines (59 loc) · 2.04 KB
/
example.yml
File metadata and controls
72 lines (59 loc) · 2.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Python Golem Base SDK CI
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Check out the SDK repo
uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v31
- name: Build the SDK
run: >
nix build .#golem-base-sdk --no-write-lock-file
- name: Build the SDK dist
run: >
nix build .#golem-base-sdk.dist --no-write-lock-file
- name: Build the example SDK app
run: >
nix build .#golem-base-sdk-example --no-write-lock-file --reference-lock-file
../flake.lock
working-directory: ./example
- name: Check out the gb-op-geth repo
uses: actions/checkout@v4
with:
repository: Golem-Base/golembase-op-geth
path: gb-op-geth
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: "gb-op-geth/go.mod"
cache-dependency-path: |
gb-op-geth/go.sum
- name: Run a gb-op-geth container
run: >
docker run -d -p 8545:8545 -e GITHUB_ACTIONS=true -e CI=true
quay.io/golemnetwork/gb-op-geth:latest --dev --http --http.api
'eth,web3,net,debug,golembase' --verbosity 3 --http.addr '0.0.0.0' --http.port 8545
--http.corsdomain '*' --http.vhosts '*' --ws --ws.addr '0.0.0.0' --ws.port 8545
- name: Create and fund an account
run: |
printf "password" | go run ./cmd/golembase account create
printf "password" | go run ./cmd/golembase account fund
working-directory: ./gb-op-geth
- name: Run the example SDK app
run: >
printf "password" | nix develop --no-write-lock-file --reference-lock-file ../flake.lock --command
./result/bin/main --instance local
working-directory: ./example
- name: Build the docs files
id: build
run: |
nix develop --command pdoc golem_base_sdk -o docs