Skip to content

Commit 2585495

Browse files
tmigonepcarranzav
authored andcommitted
chore(horizon): add horizon package boilerplate
Signed-off-by: Tomás Migone <[email protected]>
1 parent 0e8895b commit 2585495

28 files changed

+1057
-51
lines changed

.github/actions/setup/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ runs:
44
using: composite
55

66
steps:
7+
- name: Install Foundry
8+
uses: foundry-rs/foundry-toolchain@v1
79
- name: Enable corepack for modern yarn
810
shell: bash
911
run: corepack enable

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,7 @@ jobs:
1616
steps:
1717
- name: Checkout
1818
uses: actions/checkout@v4
19+
with:
20+
submodules: recursive
1921
- name: Set up environment
2022
uses: ./.github/actions/setup

.github/workflows/ci-contracts.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
steps:
2121
- name: Checkout
2222
uses: actions/checkout@v4
23+
with:
24+
submodules: recursive
2325
- name: Set up environment
2426
uses: ./.github/actions/setup
2527
- name: Run tests

.github/workflows/ci-horizon.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI - packages/horizon
2+
3+
env:
4+
CI: true
5+
6+
on:
7+
push:
8+
branches: "*"
9+
paths:
10+
- packages/horizon/**
11+
pull_request:
12+
branches: "*"
13+
paths:
14+
- packages/horizon/**
15+
workflow_dispatch:
16+
17+
jobs:
18+
test-ci:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
with:
24+
submodules: recursive
25+
- name: Set up environment
26+
uses: ./.github/actions/setup
27+
- name: Run tests
28+
run: |
29+
pushd packages/horizon
30+
yarn test

.github/workflows/ci-token-dist.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
steps:
2121
- name: Checkout
2222
uses: actions/checkout@v4
23+
with:
24+
submodules: recursive
2325
- name: Set up environment
2426
uses: ./.github/actions/setup
2527
- name: Run tests

.github/workflows/e2e-contracts.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
steps:
3131
- name: Checkout
3232
uses: actions/checkout@v4
33+
with:
34+
submodules: recursive
3335
- name: Set up environment
3436
uses: ./.github/actions/setup
3537
- name: Run e2e tests

.github/workflows/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
steps:
2424
- name: Checkout
2525
uses: actions/checkout@v4
26+
with:
27+
submodules: recursive
2628
- name: Set up environment
2729
uses: ./.github/actions/setup
2830
- name: Publish 🚀

.github/workflows/verifydeployed.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
steps:
2626
- name: Checkout
2727
uses: actions/checkout@v3
28+
with:
29+
submodules: recursive
2830
- name: Set up environment
2931
uses: ./.github/actions/setup
3032

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ cached/
2121
# Build artifacts
2222
dist/
2323
build/
24+
typechain/
25+
typechain-types/
2426
deployments/hardhat/
2527

2628
# Ignore solc bin output
@@ -45,8 +47,10 @@ addresses-fork.json
4547
# Keys
4648
.keystore
4749

50+
# Forge artifacts
51+
cache_forge
4852
# Graph client
4953
.graphclient
5054

5155
tx-builder-*.json
52-
!tx-builder-template.json
56+
!tx-builder-template.json

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "packages/horizon/lib/forge-std"]
2+
path = packages/horizon/lib/forge-std
3+
url = https://github.com/foundry-rs/forge-std

0 commit comments

Comments
 (0)