Skip to content

Commit ff56be6

Browse files
feat(orc-458): add simple CI action for tests
1 parent f1bca04 commit ff56be6

File tree

4 files changed

+31
-8
lines changed

4 files changed

+31
-8
lines changed
Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,44 @@
11
name: Tests and checks
22
on:
3-
push:
4-
branches:
5-
- main
3+
pull_request:
4+
65
jobs:
7-
test:
6+
lint:
87
name: Linter
98
runs-on: ubuntu-latest
109
steps:
1110
- name: Checkout repo
12-
uses: actions/checkout@v3
11+
uses: actions/checkout@v4
1312
- name: Set up node
14-
uses: actions/setup-node@v3
13+
uses: actions/setup-node@v4
1514
with:
16-
node-version: 18
15+
node-version: 20
1716
cache: 'yarn'
1817
- name: Install dependencies
1918
run: yarn install --immutable
2019
- name: Run lint
2120
run: yarn lint
2221
- name: Run check types
2322
run: yarn check-types
23+
24+
test:
25+
name: Tests
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Checkout repo
29+
uses: actions/checkout@v4
30+
- name: Set up node
31+
uses: actions/setup-node@v4
32+
with:
33+
node-version: 20
34+
cache: 'yarn'
35+
- name: Install Foundry
36+
uses: foundry-rs/foundry-toolchain@v1
37+
- name: Check Foundry installation
38+
run: |
39+
anvil --version
40+
cast --version
41+
- name: Install dependencies
42+
run: yarn install --immutable
43+
- name: Run tests
44+
run: yarn test:run

contracts/twg.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ import { getDeployedAddress } from '@configs';
44
import abi from 'abi/TriggerableWithdrawalsGateway.json';
55

66
export const twgAddress = getDeployedAddress('triggerableWithdrawalsGateway.implementation');
7-
export const twgContract = new Contract(twgAddress, abi, wallet);
7+
export const twgContract = new Contract(twgAddress, abi, wallet);

providers/cl-provider.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { envs } from '@configs';
22
import { stringify } from '@utils';
33
import fetch, { RequestInit } from 'node-fetch';
4+
// @ts-ignore - JSONStream types are not properly defined
45
import JSONStream from 'JSONStream';
56
import { Genesis, Fork, SignedBeaconBlock, SignedBeaconBlockHeaderContainer, ValidatorContainer } from './cl-types';
67

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"@utils": ["utils"]
2222
}
2323
},
24+
"exclude": ["vitest.config.ts"],
2425
"ts-node": {
2526
"swc": true,
2627
"require": ["tsconfig-paths/register"]

0 commit comments

Comments
 (0)