-
Notifications
You must be signed in to change notification settings - Fork 195
86 lines (73 loc) · 2.33 KB
/
Copy pathtests-compatibility-web3js.yml
File metadata and controls
86 lines (73 loc) · 2.33 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
name: Compatibility Tests for Web3.js
on:
push:
branches: [main, develop]
paths:
- 'tests/evm-tools-compatibility/web3.js/**'
- '../../scripts/tests_compatibility_setup.sh'
- '../../scripts/tests_compatibility_web3js.sh'
- 'local_node.sh'
- 'tests-compatibility-web3js.yml'
pull_request:
branches: [main, develop]
paths:
- 'tests/evm-tools-compatibility/web3.js/**'
- '../../scripts/tests_compatibility_setup.sh'
- '../../scripts/tests_compatibility_web3js.sh'
- 'local_node.sh'
- 'tests-compatibility-web3js.yml'
permissions:
contents: read
jobs:
web3js-compatibility:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.25'
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential curl git jq
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'pnpm'
- name: Cache Go modules
uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Cache Node.js modules
uses: actions/cache@v4
with:
path: tests/evm-tools-compatibility/web3.js/node_modules
key: ${{ runner.os }}-pnpm-${{ hashFiles('tests/evm-tools-compatibility/web3.js/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Build and install evmd
run: |
make install
- name: Run web3.js compatibility tests
run: |
chmod +x scripts/tests_compatibility_web3js.sh
./scripts/tests_compatibility_web3js.sh --verbose
env:
COMPAT_DIR: ${{ github.workspace }}/tests/evm-tools-compatibility