Skip to content

Commit

Permalink
⚙️ Add branch workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ishantiw committed Jul 12, 2024
1 parent b5f3878 commit 5328332
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 3 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/branch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "Branch"

on:
push:
branches: [ "master" ]

jobs:
build-and-test:
runs-on: ubuntu-latest
timeout-minutes: 30 # `yarn test` takes longer time
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install yarn
run: npm install --global yarn
- name: Install dependencies
shell: bash
run: yarn --prefer-offline
- name: Build
shell: bash
run: yarn build
- run: yarn format
- name: Check format
run: |
if [ -z "$(git status --untracked-files=no --porcelain)" ]; then
echo "All files formatted"
else
echo "Running format is required"
exit 1
fi
- run: yarn test
2 changes: 1 addition & 1 deletion scripts/runMainnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ echo "All env vars are set."

# PM2 runs on the fall back path when using CodeDeploy agent and we can run with the given fall back path
export PM2_HOME=/etc/.pm2
sudo -E pm2 stop all # Stop any running app
sudo -E pm2 delete all # Delete any running app
sudo -E pm2 start "node ${app_dir}/dist/index.js --relayer --wallet awskms --keys "relayerKey""
2 changes: 1 addition & 1 deletion scripts/runSepolia.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ echo "All env vars are set."

# PM2 runs on the fall back path when using CodeDeploy agent and we can run with the given fall back path
export PM2_HOME=/etc/.pm2
sudo -E pm2 stop all # Stop any running app
sudo -E pm2 delete all # Delete any running app
sudo -E pm2 start "node ${app_dir}/dist/index.js --relayer --wallet awskms --keys "relayerKey""
2 changes: 1 addition & 1 deletion scripts/runSepoliaSimulationMode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ echo "All env vars are set."

# PM2 runs on the fall back path when using CodeDeploy agent and we can run with the given fall back path
export PM2_HOME=/etc/.pm2
sudo -E pm2 stop all # Stop any running app
sudo -E pm2 delete all # Delete any running app
sudo -E pm2 start "node ${app_dir}/dist/index.js --relayer --wallet awskms --keys "relayerKey""

0 comments on commit 5328332

Please sign in to comment.