Something similar is done in the [flow-evm-bridge](https://github.com/onflow/flow-evm-bridge/blob/main/.github/workflows/foundry_test.yml) repository.