-
Notifications
You must be signed in to change notification settings - Fork 25
42 lines (39 loc) · 1.12 KB
/
repeat-tag.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
34
35
36
37
38
39
40
41
42
name: repeat-tag
on:
workflow_dispatch:
description: Lets the user run all the tests with specific tag N times
inputs:
tag:
description: Tag to run
required: true
type: choice
options:
- '@adding'
- '@complete'
- '@editing'
- '@item'
- '@persistence'
- '@regression'
- '@routing'
- '@sanity'
n:
description: Number of times to repeat the tests
required: false
default: 1
type: integer
jobs:
repeat-tag:
runs-on: ubuntu-22.04
steps:
- name: Print workflow inputs
run: |
echo Running the tests tagged "${{ github.event.inputs.tag }}"
echo each test will run ${{ github.event.inputs.n }} times
- name: Checkout 🛎
uses: actions/checkout@v4
# https://github.com/cypress-io/github-action
- name: Run the tagged tests N times
uses: cypress-io/github-action@v2
with:
start: npm run start-quiet
env: 'grepTags=${{ github.event.inputs.tag }},burn=${{ github.event.inputs.n }}'