Skip to content

Instantly share code, notes, and snippets.

@finnp
Last active February 16, 2025 11:59
Show Gist options
  • Save finnp/9bd8c39e3b22afe8c91c050e469388a0 to your computer and use it in GitHub Desktop.
Save finnp/9bd8c39e3b22afe8c91c050e469388a0 to your computer and use it in GitHub Desktop.
Set up wundertest with Github Actions
name: Deploy and Test
on:
push:
branches:
- main
workflow_dispatch:
jobs:
deploy:
# ... Your deploy workflow
wundertest:
needs: [deploy]
runs-on: ubuntu-latest
env:
WUNDERTEST_TOKEN: ${{ secrets.WUNDERTEST_TOKEN }}
WUNDERTEST_ORG_ID: # ADD YOUR ORG_ID here
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "18"
- name: Install Wundertest CLI
run: npm install -g wundertest@latest
- name: Run Wundertest Tests
run: |
wundertest run

How to set up Github Actions with Wundertest ✨

  • Go to "Settings" on wundertest.ai dashboard
  • Create a new API Key, call it "Github Action"
  • Create/Adapt your Github Actions YML files (see deploy-test.yml)
  • Copy the organization ID into tit under env WUNDERTEST_ORG_ID
  • Add the API Key to the secrets of the Github Repo as WUNDERTEST_TOKEN

Now on every deploy or whatever you choose it will start a test on Wundertest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment