-
-
Notifications
You must be signed in to change notification settings - Fork 310
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
272 changed files
with
4,015 additions
and
3,222 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 |
---|---|---|
|
@@ -34,3 +34,9 @@ ignore: | |
- "supporting-docs" | ||
- "docker" | ||
- ".github" | ||
|
||
flags: | ||
unit: | ||
paths: | ||
- ".*" | ||
carryforward: true |
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,13 @@ | ||
# We use these images during sim and e2e tests | ||
# TODO: Upgrade Geth once the Nethermind issue is resolved else it's causing following error | ||
# Rejected peer id=134e2c1a76745626 addr=192.168.0.3:9052 conn=staticdial err="useless peer" | ||
GETH_DOCKER_IMAGE=ethereum/client-go:v1.11.6 | ||
# Use either image or local binary for the testing | ||
GETH_BINARY_DIR= | ||
LIGHTHOUSE_DOCKER_IMAGE=sigp/lighthouse:v4.6.0-amd64-modern-dev | ||
# We can't upgrade nethermind further due to genesis hash mismatch with the geth | ||
# https://github.com/NethermindEth/nethermind/issues/6683 | ||
NETHERMIND_DOCKER_IMAGE=nethermind/nethermind:1.18.2 | ||
# We mostly use mainnet for unit testing | ||
# Changing this value may impact the tests which are written with mainnet in mind | ||
LODESTAR_PRESET=mainnet |
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
custom: https://gitcoin.co/grants/6034/lodestar-typescript-eth-consensus-client-by-chains | ||
custom: https://etherscan.io/address/0xb4da52336092db22fe8e036866d59c6488604f89 |
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
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,5 @@ | ||
name: "Setup env variables using .env file" | ||
description: "Load .env file from root of repo and setup for CI runner" | ||
runs: | ||
using: "node20" | ||
main: index.js |
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,29 @@ | ||
const fs = require("fs"); | ||
const core = require("@actions/core"); | ||
const dotEnv = require("dotenv"); | ||
const envFile = ".env.test"; | ||
|
||
if (!fs.existsSync(envFile)) { | ||
core.setFailed("File .env not found"); | ||
} | ||
|
||
const result = dotEnv.config({path: envFile}); | ||
if (result.error) { | ||
core.setFailed(result.error.message); | ||
} else { | ||
core.setOutput("env", result.parsed); | ||
core.info("Env file loaded"); | ||
core.info("Populating env variables..."); | ||
|
||
for (const key in result.parsed) { | ||
const value = result.parsed[key]; | ||
core.info(`${key}=${value}`); | ||
|
||
// Export variable | ||
core.exportVariable(key, value); | ||
|
||
// Set to output so it can be used in as the input for the next job/step | ||
core.setOutput(key, value); | ||
|
||
} | ||
} |
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,58 @@ | ||
name: "Setup and build the repo" | ||
description: "A task to reuse setup steps during multiple jobs" | ||
inputs: | ||
node: | ||
description: Node version | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{inputs.node}} | ||
check-latest: true | ||
cache: yarn | ||
|
||
- name: Node.js version | ||
id: node | ||
shell: bash | ||
run: echo "v8CppApiVersion=$(node --print "process.versions.modules")" >> $GITHUB_OUTPUT | ||
|
||
- name: Restore build | ||
uses: actions/cache/restore@v4 | ||
id: cache-build-restore | ||
with: | ||
path: | | ||
node_modules | ||
packages/*/node_modules | ||
lib/ | ||
packages/*/lib | ||
packages/*/.git-data.json | ||
key: ${{ runner.os }}-node-${{ inputs.node }}-${{ github.sha }} | ||
|
||
- name: Install & build | ||
if: steps.cache-build-restore.outputs.cache-hit != 'true' | ||
shell: bash | ||
run: yarn install --frozen-lockfile && yarn build | ||
|
||
- name: Build | ||
if: steps.cache-build-restore.outputs.cache-hit == 'true' | ||
shell: bash | ||
run: yarn build | ||
|
||
- name: Check Build | ||
shell: bash | ||
run: yarn check-build | ||
|
||
- name: Cache build artifacts | ||
uses: actions/cache@master | ||
with: | ||
path: | | ||
node_modules | ||
packages/*/node_modules | ||
lib/ | ||
packages/*/lib | ||
packages/*/.git-data.json | ||
key: ${{ runner.os }}-node-${{ inputs.node }}-${{ github.sha }} |
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
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
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
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
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
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
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
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
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
Oops, something went wrong.