Feature/new strategy integration upgrades #11
This file contains hidden or 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: simulation-core-build | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - develop | |
| paths: | |
| - "traffic-lights/simulation-core/**" | |
| - "traffic-lights/build.gradle*" | |
| - "traffic-lights/settings.gradle*" | |
| - "traffic-lights/config/**" | |
| - "traffic-lights/gradlew*" | |
| - "traffic-lights/gradle/**" | |
| - ".github/workflows/**" | |
| pull_request: | |
| branches: | |
| - main | |
| - develop | |
| paths: | |
| - "traffic-lights/simulation-core/**" | |
| - "traffic-lights/build.gradle*" | |
| - "traffic-lights/settings.gradle*" | |
| - "traffic-lights/config/**" | |
| - "traffic-lights/gradlew*" | |
| - "traffic-lights/gradle/**" | |
| - ".github/workflows/**" | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| defaults: | |
| run: | |
| working-directory: traffic-lights | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: "21" | |
| distribution: "temurin" | |
| cache: gradle | |
| server-id: github # Value of the distributionManagement/repository/id field of the pom.xml | |
| settings-path: ${{ github.workspace }} # location for the settings.xml file | |
| - name: Set up Gradle (cache) | |
| uses: gradle/actions/setup-gradle@v3 | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x ./gradlew | |
| - name: Verify (Spotless + Checkstyle + Tests) | |
| run: ./gradlew --no-daemon :simulation-core:check | |
| # The USERNAME and TOKEN need to correspond to the credentials environment variables used in | |
| # the publishing section of your build.gradle | |
| env: | |
| USERNAME: ${{ github.actor }} | |
| TOKEN: ${{ secrets.GITHUB_TOKEN }} | |