Skip to content
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

feat: Add Chainlink Data Feeds integration with comprehensive tests

feat: Add Chainlink Data Feeds integration with comprehensive tests #58

Workflow file for this run

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