Skip to content

tangle-network/bad-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

bad-action

GitHub Action for AI browser testing with bad.

Quick start

- uses: tangle-network/bad-action@v1
  with:
    api-key: ${{ secrets.BAD_API_KEY }}
    suite: "your-suite-id"

Run with a goal instead of a suite

- uses: tangle-network/bad-action@v1
  with:
    api-key: ${{ secrets.BAD_API_KEY }}
    url: "https://your-app.com"
    goal: "Sign up, verify email, check dashboard"

Run on PR label

on:
  pull_request:
    types: [labeled]

jobs:
  test:
    if: contains(github.event.pull_request.labels.*.name, 'browser-review')
    runs-on: ubuntu-latest
    steps:
      - uses: tangle-network/bad-action@v1
        with:
          api-key: ${{ secrets.BAD_API_KEY }}
          suite: "checkout-flow"

Inputs

Input Required Default Description
api-key Yes API key from browser.tangle.tools
suite No Test suite ID
goal No Plain English test goal
url No Target URL (used with goal)
browsers No chromium Browsers to test
timeout No 600 Max wait seconds
api-url No https://browser.tangle.tools API endpoint

Outputs

Output Description
run-ids Comma-separated run IDs
passed Whether all runs passed
results-url URL to view results

Get started

  1. Sign up at browser.tangle.tools
  2. Connect your repo and create a test suite
  3. Copy your API key from the CI/CD page
  4. Add the action to your workflow

About

GitHub Action for AI browser testing with bad CLI

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors