-
Notifications
You must be signed in to change notification settings - Fork 47
40 lines (33 loc) · 1016 Bytes
/
contracts-test.yaml
File metadata and controls
40 lines (33 loc) · 1016 Bytes
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
name: 'Contracts: Tests'
# This workflow is triggered from the main CI workflow.
on:
workflow_call:
jobs:
tests:
runs-on: ubuntu-latest
if: ${{ !github.event.pull_request.draft }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
cache: false
version: v0.3.0
- name: Cache Solidity ABI artifacts
uses: actions/cache@v4
with:
path: |
./contracts/out
./contract-bindings
./contracts/cache
key: v2-contracts-abi-${{ hashFiles('./contracts/**/*.sol') }}
- name: Run tests
run: cd contracts; make test
- name: Run axelar-token tests
run: cd demos/axelar-token; forge test -vvv --ffi
- name: Run linked-token tests
run: cd demos/linked-token; forge test -vvv --ffi