Skip to content

ci-all-via-ir

ci-all-via-ir #213

Workflow file for this run

name: ci-all-via-ir
on:
workflow_dispatch:
jobs:
tests:
name: Forge Testing all via-ir
runs-on: ubuntu-latest
strategy:
matrix:
profile: [via-ir-0,via-ir-1,via-ir-2,via-ir-3]
steps:
- uses: actions/checkout@v4
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Install Dependencies
run: forge install
- name: Run Tests with ${{ matrix.profile }}
run: >
( [ "${{ matrix.profile }}" = "via-ir-0" ] &&
FOUNDRY_PROFILE=pre_global_structs forge test --use 0.8.4 --via-ir &&
FOUNDRY_PROFILE=pre_global_structs forge test --use 0.8.5 --via-ir &&
FOUNDRY_PROFILE=pre_global_structs forge test --use 0.8.6 --via-ir &&
FOUNDRY_PROFILE=pre_global_structs forge test --use 0.8.7 --via-ir &&
FOUNDRY_PROFILE=pre_global_structs forge test --use 0.8.8 --via-ir &&
FOUNDRY_PROFILE=pre_global_structs forge test --use 0.8.9 --via-ir
) ||
( [ "${{ matrix.profile }}" = "via-ir-1" ] &&
forge test --use 0.8.13 --via-ir &&
FOUNDRY_PROFILE=pre_global_structs forge test --use 0.8.12 --via-ir &&
FOUNDRY_PROFILE=pre_global_structs forge test --use 0.8.11 --via-ir &&
FOUNDRY_PROFILE=pre_global_structs forge test --use 0.8.10 --via-ir
) ||
( [ "${{ matrix.profile }}" = "via-ir-2" ] &&
forge test --use 0.8.14 --via-ir &&
forge test --use 0.8.15 --via-ir &&
forge test --use 0.8.16 --via-ir &&
forge test --use 0.8.17 --via-ir
) ||
( [ "${{ matrix.profile }}" = "via-ir-3" ] &&
forge test --use 0.8.28 --via-ir &&
forge test --use 0.8.27 --via-ir &&
forge test --use 0.8.26 --via-ir &&
forge test --use 0.8.25 --via-ir &&
forge test --use 0.8.24 --via-ir &&
forge test --use 0.8.23 --via-ir &&
forge test --use 0.8.22 --via-ir &&
forge test --use 0.8.21 --via-ir &&
forge test --use 0.8.20 --via-ir &&
forge test --use 0.8.19 --via-ir &&
forge test --use 0.8.18 --via-ir
)