This repository was archived by the owner on Jun 22, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
91 lines (75 loc) · 2.35 KB
/
Copy pathtests.yml
File metadata and controls
91 lines (75 loc) · 2.35 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: Tests
on:
pull_request:
types:
- opened
- edited
- reopened
- synchronize
push:
branches:
- main
workflow_dispatch:
jobs:
docker-hello-world-tests:
name: Docker Hello World Tests
strategy:
matrix:
node-version: ["18.15.0"]
runs-on: "ubuntu-latest"
timeout-minutes: 30
steps:
- name: Checkout branch
uses: actions/checkout@v3
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install Docker
uses: docker/setup-buildx-action@v3
- name: Git Clone Local Repo
run: git clone https://github.com/matter-labs/local-setup
- name: Install dependencies
run: |
yarn install --frozen-lockfile
- name: Run Docker Compose Daemon
run: cd local-setup && mkdir -p ./volumes && mkdir -p ./volumes/postgres ./volumes/geth ./volumes/zksync/env/dev ./volumes/zksync/data && touch ./volumes/zksync/env.env && docker compose up -d && cd ..
- name: Wait until node is ready
run: |
while ! curl -s -X POST -d '{"jsonrpc":"2.0","method":"net_version","id":1}' -H 'Content-Type: application/json' 0.0.0.0:3050; do sleep 1; done
- name: Print Docker logs
run: cd local-setup && docker compose logs && cd ..
- name: Hello World Docker tests
run: cd hello-world-docker && docker ps && yarn test
im-node-tests:
name: IM Node Tests
timeout-minutes: 30
strategy:
matrix:
os: [ubuntu-latest]
node-version: ["18.15.0"]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Run Era Test Node
uses: dutterbutter/era-test-node-action@v1
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: |
yarn install --frozen-lockfile
cd gated-nft/zksync && yarn install --frozen-lockfile
- name: Custom AA tests
run: |
cd custom-aa && yarn test
- name: Hello World tests
run: |
cd hello-world && yarn test
- name: Gated NFT tests
run: |
cd gated-nft/zksync && yarn test