Skip to main content
Learn how to configure a GitHub Action to set up a continuous integration and continuous deployment pipeline (CI/CD) with Foundry on Tenderly Virtual Environments. Use the Tenderly Virtual Environment Setup action to enable automated builds to test and stage your contracts. This approach enables:
  • CI/CD Integration: Run tests against forked networks and set up staging environments
  • Multi-Network Testing: Provision multiple networks in a single step
  • Automated Deployments: Deploy and verify contracts with complete deployment logs
  • Artifact Collection: Track deployments across networks with structured logs
In this guide, you need to complete two stages:
  1. Local setup: Set up Foundry to create and test out the workflow file
  2. GitHub setup: Set up a GitHub Action, configure GitHub secrets and variables, and test the build
For reference, use this example project:

Foundry CI/CD setup

Continuous integration (CI) and continous deployment (CD) with Virtual Environments

Continuous integration (CI) and continous deployment (CD) with Virtual Environments

Stage 1: Local Setup

First, create a workflow file with the necessary settings.

Stage 2: Github Setup

After confirming your local setup works, configure your GitHub repository using the following steps.

Next steps