Skip to content

Commit

Permalink
trying to download jar + ci test example
Browse files Browse the repository at this point in the history
  • Loading branch information
arcuri82 committed Dec 19, 2024
1 parent 15826de commit fdfe996
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 13 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Validation of EvoMaster Action

on:
push:
branches:
- "**"

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Trying EvoMaster Action
uses: ./ # Refers to this custom action
with:
args: "--help"
44 changes: 31 additions & 13 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,36 @@ name: "EvoMaster Action"
description: "Fuzz Testing Web APIs with EvoMaster on GitHub Action"
inputs:
args:
description: "Arguments to pass EvoMaster, same as when running it on a command-line."
required: true
output-dir:
description: "Directory on the host to store the generated output files, like test suites."
description: "Arguments to pass to EvoMaster. Same as when running it on a command-line."
required: true
# output-dir:
# description: "Directory on the host to store the generated output files, e.g., the test suites."
# required: true


runs:
using: "docker"
image: "docker://webfuzzing/evomaster:latest"
entrypoint: "/bin/sh -c"
args:
- >
docker run --rm
-v ${{ inputs.output-dir }}:/generated_tests
webfuzzing/evomaster:latest
${{ inputs.args }}
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

- name: Run EvoMaster
run: java -jar evomaster.jar ${{ inputs.args }}

#runs:
# using: "docker"
# image: "docker://webfuzzing/evomaster:latest"
# entrypoint: "/bin/sh -c"
# args:
# - >
# docker run --rm
# -v ${{ inputs.output-dir }}:/generated_tests
# webfuzzing/evomaster:latest
# ${{ inputs.args }}

0 comments on commit fdfe996

Please sign in to comment.