Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/etherspot/skandha into dy…
Browse files Browse the repository at this point in the history
…namic-networks
  • Loading branch information
0xSulpiride committed Sep 18, 2023
2 parents d8f3233 + af12742 commit fb9d584
Show file tree
Hide file tree
Showing 209 changed files with 14,352 additions and 1,324 deletions.
3 changes: 0 additions & 3 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ packages/**/docs
packages/**/typedocs
/site

# Lodestar artifacts
.pyrmont

# Other / artifacts
**/.nyc_output
**/coverage
Expand Down
6 changes: 0 additions & 6 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@ module.exports = {
"error",
{
groups: ["builtin", "external", "internal", "parent", "sibling", "index"],
pathGroups: [
{
pattern: "@lodestar/**",
group: "internal",
},
],
pathGroupsExcludedImportTypes: ["builtin"],
},
],
Expand Down
17 changes: 9 additions & 8 deletions .github/workflows/bundler-spec-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,20 @@ jobs:

- name: Install Geth
run: |
sudo add-apt-repository -y ppa:ethereum/ethereum && \
sudo apt-get update && \
sudo apt-get install ethereum
wget https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.12.2-bed84606.tar.gz
tar -xvf geth-linux-amd64-1.12.2-bed84606.tar.gz
- name: Run Geth
run: |
geth \
cd geth-linux-amd64-1.12.2-bed84606 &&
./geth \
--verbosity 1 \
--http.vhosts '*,localhost,host.docker.internal' \
--http \
--http.api eth,net,web3,debug \
--http.api personal,eth,net,web3,debug \
--http.corsdomain '*' \
--http.addr "0.0.0.0" \
--nodiscover --maxpeers 0 --mine \
--nodiscover --maxpeers 0 \
--networkid 1337 \
--dev \
--allow-insecure-unlock \
Expand All @@ -67,7 +67,8 @@ jobs:
- name: Fund bundler
run: |
geth \
cd geth-linux-amd64-1.12.2-bed84606 &&
./geth \
--exec "eth.sendTransaction({from: eth.accounts[0], to: \"0x55082761664aEb8062B3427ba5E0455bFb7b68CB\", value: web3.toWei(4337, \"ether\")})" \
attach http://localhost:8545/
Expand All @@ -76,7 +77,7 @@ jobs:

- name: Start Skandha
# This private key is for testing only
run: cp config.json.default config.json && jq '.networks.dev.relayer = "0x767b4393f6a5da742b30585428116f0395bee8e61c2da4ae8e67e5633389e2d3"' && ./skandha --testingMode &
run: cp config.json.default config.json && jq '.networks.dev.relayer = "0x767b4393f6a5da742b30585428116f0395bee8e61c2da4ae8e67e5633389e2d3"' && ./skandha standalone --testingMode &

- name: Run tests
working-directory: ./bundler-spec-tests
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/lint-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: "Lint PR title"

on:
pull_request_target:
types:
- opened
- edited
- synchronize
- labeled
- unlabeled
jobs:
main:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |
feat
fix
perf
refactor
revert
deps
build
ci
test
chore
docs
requireScope: false
subjectPattern: ^(?![A-Z]).+$
subjectPatternError: |
The subject "{subject}" found in the pull request title "{title}"
didn't match the configured pattern. Please ensure that the subject
doesn't start with an uppercase character.
ignoreLabels: |
bot
dependencies
48 changes: 48 additions & 0 deletions .github/workflows/release-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Build skandha unstable docker image

on:
push:
branches:
- "develop"

jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Get package version
id: get_version
run: echo version=$(git rev-parse --short "$GITHUB_SHA") >> $GITHUB_OUTPUT
-
name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/skandha:unstable
${{ secrets.DOCKERHUB_USERNAME }}/skandha:unstable-${{ steps.get_version.outputs.version }}
-
name: Create GitHub release
uses: "marvinpinto/action-automatic-releases@6273874b61ebc8c71f1a61b2d98e234cf389b303"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "unstable"
prerelease: true
title: Release unstable-${{ steps.get_version.outputs.version }}
-
name: Trigger dev pipeline
run: ${{ secrets.PIPELINE_DEV_TRIGGER }}
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
Expand Down
Loading

0 comments on commit fb9d584

Please sign in to comment.