-
Notifications
You must be signed in to change notification settings - Fork 4
39 lines (37 loc) · 1.7 KB
/
test.yml
File metadata and controls
39 lines (37 loc) · 1.7 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
name: Tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Fetch OZ deps
run: |
git submodule sync --recursive
git submodule update --init --recursive --depth 1 || true
if [ ! -f lib/openzeppelin-contracts-upgradeable/contracts/security/PausableUpgradeable.sol ]; then
rm -rf lib/openzeppelin-contracts-upgradeable
git clone --depth 1 --branch v4.9.6 https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable lib/openzeppelin-contracts-upgradeable
fi
if [ ! -f lib/openzeppelin-contracts/contracts/security/ReentrancyGuard.sol ]; then
rm -rf lib/openzeppelin-contracts
git clone --depth 1 --branch v4.9.6 https://github.com/OpenZeppelin/openzeppelin-contracts lib/openzeppelin-contracts
fi
if [ ! -f lib/forge-std/src/Test.sol ]; then
rm -rf lib/forge-std
git clone --depth 1 --branch v1.9.6 https://github.com/foundry-rs/forge-std lib/forge-std
fi
ls -la lib
ls -la lib/openzeppelin-contracts-upgradeable/contracts/security
ls -la lib/openzeppelin-contracts/contracts/security
ls -la lib/forge-std/src
test -f lib/openzeppelin-contracts-upgradeable/contracts/security/PausableUpgradeable.sol
test -f lib/openzeppelin-contracts-upgradeable/contracts/security/ReentrancyGuardUpgradeable.sol
test -f lib/forge-std/src/Test.sol
- name: Run tests
run: forge test -vvv