Integrate MuukTest's E2E testing capabilities into your GitHub Actions workflows. This action automatically downloads your test scripts and configuration files from the MuukTest portal, sets up Playwright with all required dependencies, and executes your E2E tests.
- 🔐 Secure authentication with MuukTest portal using your API key
- 🎯 Execute tests by tag or hashtag for flexible test selection
- 🌐 Override base URL for testing different environments
- ⚡ Configurable parallel workers for optimal test execution
- 📊 Automatic test result reporting to MuukTest portal
- 🔧 Zero-configuration Playwright setup with all dependencies
- A MuukTest account with test scripts configured
- API key (
key.pub) downloaded from your MuukTest portal Account tab - Tests tagged appropriately for CI/CD execution
Add the MuukTest action to your GitHub Actions workflow:
name: E2E Tests
on: [pull_request, push]
jobs:
muuktest-e2e:
runs-on: ubuntu-latest
name: Run MuukTest E2E Tests
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Execute MuukTest E2E tests
uses: muuklabs/action@v1.0.5
with:
muuk-key: ${{ secrets.MUUKTEST_KEY }}
tag-property: ${{ vars.TAG_PROPERTY }}
tag-value: ${{ vars.TAG_VALUE }}| Input | Required | Default | Description |
|---|---|---|---|
muuk-key |
✅ Yes | - | Your MuukTest API key from key.pub file. Download from the Account tab in MuukTest Portal. Store this as a secret! |
tag-property |
✅ Yes | - | Test selection mode: tag (single test) or hashtag (multiple tests by hashtag) |
tag-value |
✅ Yes | - | The tag or hashtag value to filter tests (e.g., mytest or #cicd) |
base-url |
❌ No | - | Override the base URL for test execution. If not provided, tests use their configured base URL from MuukTest portal |
workers |
❌ No | 3 |
Number of parallel workers for Playwright test execution |
- name: Run E2E tests
uses: muuklabs/action@v1.0.5
with:
muuk-key: ${{ secrets.MUUKTEST_KEY }}
tag-property: ${{ vars.TAG_PROPERTY }}
tag-value: ${{ vars.TAG_VALUE }}- name: Run E2E tests on staging
uses: muuklabs/action@v1.0.5
with:
muuk-key: ${{ secrets.MUUKTEST_KEY }}
tag-property: 'hashtag'
tag-value: '#smoke'
base-url: 'https://staging.example.com'- name: Run E2E tests with 5 parallel workers
uses: muuklabs/action@v1.0.5
with:
muuk-key: ${{ secrets.MUUKTEST_KEY }}
tag-property: 'hashtag'
tag-value: '#regression'
workers: '5'- name: Run E2E tests with all options
uses: muuklabs/action@v1.0.5
with:
muuk-key: ${{ secrets.MUUKTEST_KEY }}
tag-property: 'hashtag'
tag-value: '#cicd'
base-url: 'https://qa.example.com'
workers: '4'In your GitHub repository, go to Settings → Secrets and variables → Actions and create:
MUUKTEST_KEY: Your MuukTest API key content from thekey.pubfile
You can also set repository variables for convenience:
TAG_PROPERTY: Default tag property (e.g.,hashtag)TAG_VALUE: Default tag value (e.g.,#cicd)
- Authentication: Connects to MuukTest portal using your API key
- Download: Retrieves test scripts and configuration files
- Setup: Installs Node.js, Playwright, and all required dependencies
- Execute: Runs your E2E tests with the specified parallel workers
- Report: Automatically sends test results back to MuukTest portal
For more information about MuukTest or to report issues:
- 📖 MuukTest Documentation
- 🐛 Report an Issue
- 📧 Contact MuukTest support
See LICENSE file for details.