diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..5d238c9 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -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" \ No newline at end of file diff --git a/action.yaml b/action.yaml index 99475a3..67088ce 100644 --- a/action.yaml +++ b/action.yaml @@ -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 }} \ No newline at end of file + 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 }} \ No newline at end of file