Repository navigation
Expand file tree
/
Copy pathaction.yaml
More file actions
74 lines (66 loc) · 2.29 KB
/
Copy pathaction.yaml
File metadata and controls
74 lines (66 loc) · 2.29 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: "EvoMaster Action"
description: "Fuzz Testing Web APIs with EvoMaster on GitHub Action"
inputs:
args:
description: "Arguments to pass to EvoMaster. Same as when running it on a command-line."
required: true
failOnErrors:
description: "Fail the action if any issue was found in the System Under Test"
required: true
outputFolder:
description: "Folder where EvoMaster writes its output. Must match '--outputFolder' if this is given in 'args'."
required: false
default: "generated_tests"
uploadArtifact:
description: "Upload the output folder (generated tests and interactive report) as a workflow artifact"
required: false
default: "true"
artifactName:
description: "Name of the uploaded artifact"
required: false
default: "evomaster-results"
annotations:
description: "Create annotations for the found fault categories"
required: false
default: "true"
prComment:
description: "On pull requests, write (and keep updated) a comment with a short summary. Needs 'pull-requests: write' permission."
required: false
default: "false"
runs:
using: "composite"
steps:
- name: Setup JDK
uses: actions/setup-java@v1
with:
java-version: 21
- name: Download EvoMaster JAR using GitHub CLI
run: gh release download --repo webfuzzing/evomaster --pattern "evomaster.jar"
shell: bash
env:
GH_TOKEN: ${{ github.token }}
- name: Run EvoMaster
run: java -jar evomaster.jar ${{ inputs.args }}
shell: bash
- name: Upload EvoMaster Results
id: upload
if: inputs.uploadArtifact == 'true'
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.artifactName }}
path: ${{ inputs.outputFolder }}
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Analyze Results
run: node "$GITHUB_ACTION_PATH"/dist/index.js
shell: bash
env:
GITHUB_ACTION_PATH: ${{ github.action_path }}
GITHUB_TOKEN: ${{ github.token }}
FAIL_ON_ERRORS: ${{inputs.failOnErrors}}
OUTPUT_FOLDER: ${{ inputs.outputFolder }}
ARTIFACT_URL: ${{ steps.upload.outputs.artifact-url }}
ANNOTATIONS: ${{ inputs.annotations }}
PR_COMMENT: ${{ inputs.prComment }}