-
Notifications
You must be signed in to change notification settings - Fork 24
33 lines (30 loc) · 917 Bytes
/
repeat-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: repeat-test
on:
workflow_dispatch:
description: Lets the user run a test by title N times
inputs:
title:
description: Full or part of the test title
required: true
type: string
n:
description: Number of times to repeat the test
required: false
default: 1
type: integer
jobs:
repeat-test:
runs-on: ubuntu-22.04
steps:
- name: Print workflow inputs
run: |
echo Running the test "${{ github.event.inputs.title }}"
echo for ${{ github.event.inputs.n }} times
- name: Checkout 🛎
uses: actions/checkout@v4
# https://github.com/cypress-io/github-action
- name: Run the test N times
uses: cypress-io/github-action@v2
with:
start: npm run start-quiet
env: 'grep=${{ github.event.inputs.title }},burn=${{ github.event.inputs.n }}'