-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
47 lines (44 loc) · 1.44 KB
/
action.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
43
44
45
46
47
name: "Run Stryker"
author: "Tom van den Berg"
description: "Github action to run Stryker to validate your tests 👽👾"
branding:
icon: 'zap'
color: 'red'
inputs:
tool:
description: "The type of stryker that you want to run (accepted values: Stryker.NET)"
required: true
testProject:
description: "The path to the test project directory (e.g. BusinessLogic.Test/)"
required: true
configFile:
description: "The path to the stryker config file"
required: false
default: ./
runs:
using: "composite"
steps:
- name: Check tool
if: ${{ inputs.tool != 'Stryker.NET' }}
run: |
echo "Invalid tool. Expected 'Stryker.NET' or StrykerJS."
exit 1
shell: bash
- name: Run Stryker.NET
if: ${{ inputs.tool == 'Stryker.NET' }}
shell: bash
run: |
docker run \
-v ${{ github.workspace }}:/workspace \
ghcr.io/stryker-mutator/run-stryker-net:11-support-strykerjs-to-be-ran-with-this-action \
/workspace/${{ inputs.testProject }} \
${{ inputs.configFile }} \
- name: Run StrykerJS
if: ${{ inputs.strykerVersion == 'StrykerJS' }}
shell: bash
run: |
docker run \
-v ${{ github.workspace }}:/workspace \
ghcr.io/stryker-mutator/run-strykerjs:11-support-strykerjs-to-be-ran-with-this-action \
/workspace/${{ inputs.testProject }} \
${{ inputs.configFile }} \