Skip to content

[#146] Add rimraf dependency in modules/4337-gas-metering #436

[#146] Add rimraf dependency in modules/4337-gas-metering

[#146] Add rimraf dependency in modules/4337-gas-metering #436

Workflow file for this run

name: safe-modules-4337
on: [push]
jobs:
tests:
runs-on: ubuntu-latest
defaults:
run:
working-directory: .
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 20.x
cache: npm
cache-dependency-path: package-lock.json
- run: npm ci -w modules/4337
- run: npm run build -w modules/4337 && npm run build:ts -w modules/4337
- run: npm run coverage -w modules/4337
- name: Coveralls
uses: coverallsapp/github-action@master
with:
path-to-lcov: modules/4337/coverage/lcov.info
github-token: ${{ secrets.GITHUB_TOKEN }}
e2e:
runs-on: ubuntu-latest
defaults:
run:
working-directory: .
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 20.x
cache: npm
cache-dependency-path: package-lock.json
- run: npm ci -w modules/4337
- run: |
docker compose -f modules/4337/docker-compose.yaml up -d
# wait for containers to start up
SECONDS=0
until curl -fs http://localhost:8545 >/dev/null && curl -fs http://localhost:3000 >/dev/null; do
if [[ $SECONDS -gt 30 ]]; then
echo "ERROR: timeout waiting for local node and bundler to start"
docker compose logs
exit 1
fi
sleep 1
done
npm run test:e2e -w modules/4337
lint:
runs-on: ubuntu-latest
defaults:
run:
working-directory: .
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 20.x
cache: npm
cache-dependency-path: package-lock.json
- run: npm ci -w modules/4337
- run: npm run lint -w modules/4337
- run: npm run fmt:check -w modules/4337