141 serializable metrics #47
Workflow file for this run
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: reproduction-check | |
on: | |
pull_request: | |
types: [opened, synchronize, ready_for_review] | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
env: | |
JDK_VERSION: 17 | |
jobs: | |
safety-check: | |
name: Check for modified Gradle | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Validate Gradle artifacts | |
uses: gradle/wrapper-validation-action@v1 | |
reproduction: | |
name: Reproduction check | |
needs: safety-check | |
runs-on: ubuntu-latest | |
if: ${{ !github.event.pull_request.draft }} | |
steps: | |
- name: Checkout STARS | |
uses: actions/checkout@v4 | |
with: | |
path: stars | |
fetch-depth: 0 # Required for version number generation | |
- name: Checkout STARS-CARLA | |
uses: actions/checkout@v3 | |
with: | |
repository: tudo-aqua/stars-carla-experiments | |
ref: dev | |
path: stars-carla | |
fetch-depth: 0 # Required for version number generation | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: ${{ env.JDK_VERSION }} | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
- name: Restore experiments data | |
id: cache-data-restore | |
uses: actions/cache/restore@v4 | |
with: | |
path: stars-carla/stars-reproduction-source/stars-experiments-data/simulation_runs | |
key: ${{ runner.os }}-data | |
- name: Run experiments | |
run: | | |
cd stars-carla | |
ls -a | |
chmod +x ./gradlew | |
./gradlew run | |
- name: Save experiments data | |
uses: actions/cache/save@v4 | |
with: | |
path: stars-carla/stars-reproduction-source/stars-experiments-data/simulation_runs | |
key: ${{ runner.os }}-data | |
if: steps.cache-data-restore.outputs.cache-hit != 'true' |