Skip to content

Commit 4a7b4eb

Browse files
committed
Git. Add pre-comit as github action
1 parent d55f508 commit 4a7b4eb

File tree

19 files changed

+38
-22
lines changed

19 files changed

+38
-22
lines changed

.github/workflows/pre-commit.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: pre-commit
2+
3+
on:
4+
pull_request:
5+
branches: ["main"]
6+
7+
jobs:
8+
pre-commit:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
actions: read
12+
contents: read
13+
steps:
14+
- uses: actions/checkout@v3
15+
- uses: actions/setup-python@v3
16+
- uses: pre-commit/[email protected]

.github/workflows/semgrep.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ jobs:
5353
uses: github/codeql-action/upload-sarif@v2
5454
with:
5555
sarif_file: semgrep-results.sarif
56-
if: always()
56+
if: always()

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ ha-nodes-deploy*.json
3737
*.OLD
3838
.env
3939
.idea
40-
.vscode
40+
.vscode

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
"bcuser",
44
"usermod"
55
]
6-
}
6+
}

lib/base/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ We currently don't recommend running **archive** nodes in HA setup, because it t
208208
:::
209209

210210
### Monitoring
211-
Every 5 minutes a script on the deployed node publishes to CloudWatch service the metrics for current block for L1/L2 clients as well as blocks behind metric for L1 and minutes behind for L2. When the node is fully synced the blocks behind metric should get to 4 and minutes behind should get down to 0.
211+
Every 5 minutes a script on the deployed node publishes to CloudWatch service the metrics for current block for L1/L2 clients as well as blocks behind metric for L1 and minutes behind for L2. When the node is fully synced the blocks behind metric should get to 4 and minutes behind should get down to 0.
212212

213213
- To see the metrics for **single node only**:
214214
- Navigate to CloudWatch service (make sure you are in the region you have specified for AWS_REGION)
@@ -291,4 +291,4 @@ sudo su bcuser
291291
```
292292
4. Where to find the key Base client directories?
293293

294-
- The data directory is `/data`
294+
- The data directory is `/data`

lib/base/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ cdk.Aspects.of(app).add(
5757
reports: true,
5858
logIgnores: false,
5959
})
60-
);
60+
);

lib/besu-private/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
This blueprint deploys a ready-to-test private blockchain network powered by [Hyperledger Besu](https://github.com/hyperledger/besu/) with [IBFT consensus](https://arxiv.org/abs/2002.03613). It is accessible by applications via [AWS PrivateLink](https://aws.amazon.com/privatelink/) and [Network Load Balancer](https://docs.aws.amazon.com/elasticloadbalancing/latest/network/introduction.html) (NLB).
88

9-
High-level features include:
9+
High-level features include:
1010
- Automated blockchain node recovery based on deep health check.
1111
- Automated key management after initial setup.
1212
- Deployment of software changes without downtime.

lib/ethereum/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ The result should be like this (the actual balance might change):
303303
### Clearing up and undeploying everything
304304

305305
1. Destroy RPC Nodes, Sync Nodes and Common components
306-
306+
307307
```bash
308308
# Setting the AWS account id and region in case local .env file is lost
309309
export AWS_ACCOUNT_ID=<your_target_AWS_account_id>

lib/solana/lib/assets/instance/cfn-hup/setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ fi
2727
sed -i "s;__AWS_STACK_ID__;\"$STACK_ID\";g" /etc/cfn/cfn-hup.conf
2828
sed -i "s;__AWS_REGION__;\"$AWS_REGION\";g" /etc/cfn/cfn-hup.conf
2929

30-
mkdir -p /etc/cfn/hooks.d/system
30+
mkdir -p /etc/cfn/hooks.d/system
3131
mv /opt/instance/cfn-hup/cfn-auto-reloader.conf /etc/cfn/hooks.d/cfn-auto-reloader.conf
3232
sed -i "s;__AWS_STACK_NAME__;\"$STACK_NAME\";g" /etc/cfn/hooks.d/cfn-auto-reloader.conf
3333
sed -i "s;__AWS_REGION__;\"$AWS_REGION\";g" /etc/cfn/hooks.d/cfn-auto-reloader.conf
@@ -37,4 +37,4 @@ fi
3737

3838
systemctl daemon-reload
3939
systemctl enable --now cfn-hup
40-
systemctl start cfn-hup.service
40+
systemctl start cfn-hup.service

lib/solana/lib/assets/instance/storage/setup.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ fi
9595
if [ -n "$VOLUME_SIZE" ]; then
9696
VOLUME_ID=/dev/$(lsblk -lnb | awk -v VOLUME_SIZE_BYTES="$VOLUME_SIZE" '{if ($4== VOLUME_SIZE_BYTES) {print $1}}')
9797
echo "Data volume size defined, use respective volume id: $VOLUME_ID"
98-
else
98+
else
9999
VOLUME_ID=$(get_next_empty_nvme_disk)
100100
echo "Data volume size undefined, trying volume id: $VOLUME_ID"
101101
fi
102-
102+
103103
make_fs $FILE_SYSTEM "$VOLUME_ID"
104104

105105
sleep 10
@@ -127,4 +127,4 @@ fi
127127
chown -R bcuser:bcuser "$DIR_NAME"
128128
else
129129
echo "$DIR_NAME volume is mounted, nothing changed"
130-
fi
130+
fi

0 commit comments

Comments
 (0)