This repository was archived by the owner on Jul 10, 2026. It is now read-only.
feat: Add Chainlink Data Feeds integration with comprehensive tests #58
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main, chainlink-resolver] | |
| pull_request: | |
| branches: ['*'] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint-and-format: | |
| name: Lint & Format | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: false | |
| - name: Thorough clean | |
| run: rm -rf .gitmodules lib/ node_modules/ foundry.lock | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| - name: Install npm dependencies | |
| run: npm ci | |
| - name: Install forge dependencies | |
| run: | | |
| mkdir -p lib | |
| cd lib | |
| git clone --depth 1 --branch v1.16.0 https://github.com/foundry-rs/forge-std.git | |
| git clone --depth 1 --branch v5.4.0 https://github.com/OpenZeppelin/openzeppelin-contracts.git | |
| git clone --depth 1 https://github.com/FhenixProtocol/fhenix-contracts.git | |
| git clone --depth 1 https://github.com/FhenixProtocol/cofhe-contracts.git | |
| git clone --depth 1 https://github.com/OpenZeppelin/openzeppelin-foundry-upgrades.git | |
| cd .. | |
| - name: Check formatting | |
| run: forge fmt --check | |
| compile: | |
| name: Compile Contracts | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: false | |
| - name: Thorough clean | |
| run: rm -rf .gitmodules lib/ node_modules/ foundry.lock | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| - name: Install npm dependencies | |
| run: npm ci | |
| - name: Install forge dependencies | |
| run: | | |
| mkdir -p lib | |
| cd lib | |
| git clone --depth 1 --branch v1.16.0 https://github.com/foundry-rs/forge-std.git | |
| git clone --depth 1 --branch v5.4.0 https://github.com/OpenZeppelin/openzeppelin-contracts.git | |
| git clone --depth 1 https://github.com/FhenixProtocol/fhenix-contracts.git | |
| git clone --depth 1 https://github.com/FhenixProtocol/cofhe-contracts.git | |
| git clone --depth 1 https://github.com/OpenZeppelin/openzeppelin-foundry-upgrades.git | |
| cd .. | |
| - name: Compile contracts | |
| run: forge build --sizes | |
| test: | |
| name: Test Contracts | |
| runs-on: ubuntu-latest | |
| needs: compile | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: false | |
| - name: Thorough clean | |
| run: rm -rf .gitmodules lib/ node_modules/ foundry.lock | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| - name: Install npm dependencies | |
| run: npm ci | |
| - name: Install forge dependencies | |
| run: | | |
| mkdir -p lib | |
| cd lib | |
| git clone --depth 1 --branch v1.16.0 https://github.com/foundry-rs/forge-std.git | |
| git clone --depth 1 --branch v5.4.0 https://github.com/OpenZeppelin/openzeppelin-contracts.git | |
| git clone --depth 1 https://github.com/FhenixProtocol/fhenix-contracts.git | |
| git clone --depth 1 https://github.com/FhenixProtocol/cofhe-contracts.git | |
| git clone --depth 1 https://github.com/OpenZeppelin/openzeppelin-foundry-upgrades.git | |
| cd .. | |
| - name: Run unit tests | |
| run: forge test -vvv --no-match-contract "(Fork|Integration|Deployed|ChainlinkConditions|UnifiedE2E)" | |
| - name: Run fork and integration tests | |
| run: forge test -vvv --match-contract "(Fork|Integration|Deployed|ChainlinkConditions|UnifiedE2E)" --fork-url https://sepolia-rollup.arbitrum.io/rpc | |
| env: | |
| ARBITRUM_SEPOLIA_RPC_URL: https://sepolia-rollup.arbitrum.io/rpc |