GitHub Actions Template

name: Magic CLI template usage

on:
  push:
    branches:
      - main

env:
  MI_API_KEY: ${{ secrets.MI_API_KEY }}

jobs:
  build:
    runs-on: ubuntu-latest
    container:
      image: magicinspector/cli:latest
    steps:
      - name: Verify Magic CLI Installation
        run: magic-cli -V # Print installed version

      - name: Run All Suites
        run: magic-cli suite:trigger --all # Run all suites

      - name: Run Specific Suite
        run: magic-cli suite:trigger aZSFLslgijsqmlgjsomg # Run a specific suite by its ID

Was this page helpful?