-
-
Notifications
You must be signed in to change notification settings - Fork 112
63 lines (53 loc) · 1.79 KB
/
Copy pathtest.yml
File metadata and controls
63 lines (53 loc) · 1.79 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
name: Tests
on: [push, pull_request]
jobs:
pre_job:
continue-on-error: true
runs-on: ubuntu-latest
permissions:
actions: "read"
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: MetaMask/skip-duplicate-actions@v5
with:
concurrent_skipping: same_content_newer
check-ffi:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Search for 'ffi' in foundry.toml
run: |
if grep -q "ffi" "foundry.toml"; then
echo "Remove ffi configuration from the foundry.toml"
exit 1
fi
tests:
needs: pre_job
if: needs.pre_job.outputs.should_skip != 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Foundry
uses: MetaMask/foundry-toolchain@v1
with:
version: stable
- name: Run Forge Install
run: forge install
- name: Check contract sizes
run: forge build --sizes --skip test --skip script --optimize true
- name: Run tests
run: forge test -vvv
env:
LINEA_RPC_URL: ${{ secrets.LINEA_RPC_URL }}
ARBITRUM_RPC_URL: ${{ secrets.ARBITRUM_RPC_URL }}
RPC_API_KEY: ${{ secrets.RPC_API_KEY }}
# The new-API Linea fork suite needs a post-London executor spec (live Linea aggregator contracts use
# PUSH0 etc.), so it self-skips under the default profile above and runs for real here.
- name: Run new-API Linea fork tests (linea-fork profile)
run: forge test --match-contract DelegationMetaSwapAdapterNewApiForkTest -vvv
env:
FOUNDRY_PROFILE: linea-fork
LINEA_RPC_URL: ${{ secrets.LINEA_RPC_URL }}