cartesi / rollups

Cartesi Rollups
30 stars 12 forks source link

Fix `foundry` version used in CI #176

Closed guidanoli closed 1 year ago

guidanoli commented 1 year ago

📚 Context

The CI is using the latest version of foundry. This leads to unstable builds, which can break at any time. This has happened recently with forge test panicking by not being able to resolve paths correctly.

✔️ Solution

We should change the workflow file to install a specific version of foundry. You can see there are some options on foundryup that allow this configuration.

$ foundrup -h

The installer for Foundry.

Update or revert to a specific Foundry version with ease.

USAGE:
    foundryup <OPTIONS>

OPTIONS:
    -h, --help      Print help information
    -v, --version   Install a specific version
    -b, --branch    Install a specific branch
    -P, --pr        Install a specific Pull Request
    -C, --commit    Install a specific commit
    -r, --repo      Install from a remote GitHub repo (uses default branch if no other options are set)
    -p, --path      Install a local repository