-
Notifications
You must be signed in to change notification settings - Fork 86
57 lines (55 loc) · 1.69 KB
/
ci_4337.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: safe-modules-4337
on: [push]
jobs:
tests:
runs-on: ubuntu-latest
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
- 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
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
- 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
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
- run: npm run lint -w modules/4337
- run: npm run fmt:check -w modules/4337