-
Notifications
You must be signed in to change notification settings - Fork 5
47 lines (39 loc) · 1.08 KB
/
main.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
name: ARM
on:
pull_request:
types: [opened, reopened, synchronize]
push:
branches:
- 'main'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# increasing available memory for node reduces issues with ganache crashing
# https://nodejs.org/api/cli.html#cli_max_old_space_size_size_in_megabytes
NODE_OPTIONS: --max_old_space_size=4096
jobs:
lint:
name: Contracts Linter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Run Linter
run: forge fmt --check
foundry-tests:
name: Foundry fork tests
runs-on: ubuntu-latest
env:
PROVIDER_URL: ${{ secrets.PROVIDER_URL }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Install Dependencies
run: forge soldeer install
- name: Run fork tests
run: forge test -vvv --summary --detailed