feat: add GZoltar example with the run of the action #2
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: Run GZoltar Action | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- "**.md" | |
workflow_dispatch: | |
jobs: | |
maven-example: | |
permissions: | |
contents: write | |
pull-requests: write | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./com.gzoltar.maven.examples | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v2 | |
with: | |
java-version: "8" | |
distribution: "temurin" | |
- name: Compile Tests with Maven | |
run: mvn clean test-compile | |
- name: Run Tests and GZoltar with Maven | |
run: mvn -P sufire gzoltar:prepare-agent test | |
- name: Prepare GZoltar Report | |
run: mvn gzoltar:fl-report | |
- name: Run Gzoltar Action | |
uses: GZoltar/[email protected] | |
with: | |
build-path: "/com.gzoltar.maven.examples/target" | |
sfl-ranking: "[ochiai]" | |
sfl-threshold: "[0.5]" | |
sfl-ranking-order: "ochiai" | |
upload-artifacts: true |