Skip to content

fix: stabilize uups upgrades and deps #69

fix: stabilize uups upgrades and deps

fix: stabilize uups upgrades and deps #69

Workflow file for this run

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