updating to use @v1 #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: EvoMaster Test Case Generation | |
on: | |
push: | |
branches: | |
- "**" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup JDK 8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
- name: Cache Maven packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-m2 | |
- name: Build with Maven | |
run: mvn clean verify --fae | |
- name: Start Docker Compose | |
run: docker compose up -d --build | |
- uses: webfuzzing/evomaster-action@v1 | |
with: | |
args: >- | |
--writeWFCReport true | |
--blackBox true | |
--bbSwaggerUrl http://localhost:8080/v3/api-docs | |
--maxTime 20s | |
--showProgress false | |
failOnErrors: "true" | |
- name: Upload Generated Files | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: results | |
path: ./generated_tests | |
- name: Stop Docker Compose | |
if: always() | |
run: docker compose down | |