-
Notifications
You must be signed in to change notification settings - Fork 9
36 lines (30 loc) · 1.02 KB
/
run-tests.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
on:
push:
branches:
- main
name: Openfort Test Contracts
jobs:
check:
name: Foundry tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Install dependencies
run: yarn
- name: Local tests
env: # Or as an environment variable
ENTRY_POINT_ADDRESS: ${{ vars.ENTRY_POINT_ADDRESS }}
VERSION_SALT: 0x0510000000000000000000000000000000000000000000000000000000000051
run: forge test --force -vvv --match-test test
- name: Fork tests (Goerli)
env: # Or as an environment variable
ENTRY_POINT_ADDRESS: ${{ vars.ENTRY_POINT_ADDRESS }}
GOERLI_RPC: ${{ secrets.GOERLI_RPC }}
VERSION_SALT: 0x0510000000000000000000000000000000000000000000000000000000000051
run: forge test --force -vvv --match-test test --fork-url $GOERLI_RPC