1. Help Center
  2. Testcontainers Cloud for CI

How to use Testcontainers Cloud with GitHub Actions

Make sure TC_CLOUD_TOKEN is set to your corresponding token value, download the agent and start it.

To use Testcontainers Cloud with your GitHub Actions you just need to make sure TC_CLOUD_TOKEN is set to your corresponding token value, then download the agent and start it. You can use the following script to add necessary steps to your workflow :

build:
env:
TC_CLOUD_TOKEN: $
steps:
- name: Prepare Testcontainers Cloud agent
if: env.TC_CLOUD_TOKEN != ''
     uses: atomicjar/testcontainers-cloud-setup-action@main
# ... existing steps go here (checkout, run tests, etc.)