Workflow file for this run
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: Build and test | |
| on: [push] | |
| jobs: | |
| build-and-check: | |
| name: Build and check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| with: | |
| cache-read-only: false | |
| - name: Generate and submit dependency graph | |
| uses: gradle/actions/dependency-submission@v4 | |
| if: ${{ github.ref == 'refs/heads/master' }} | |
| - name: Build, check and test | |
| run: ./gradlew shadowJar annotation:jar check integrationTest | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Jars | |
| path: | | |
| agent/build/libs/*.jar | |
| annotation/build/libs/*.jar | |
| smoke-test: | |
| name: Smoke test | |
| runs-on: ubuntu-latest | |
| needs: build-and-check | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-java@v4 | |
| name: Set up Java with gradle | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| cache: gradle | |
| - name: Setup Bats and bats libs | |
| id: setup-bats | |
| uses: bats-core/bats-action@3.0.0 | |
| - name: Download artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: Jars | |
| - name: Install tests | |
| shell: bash | |
| env: | |
| BATS_LIB_PATH: ${{ steps.setup-bats.outputs.lib-path }} | |
| TERM: xterm | |
| working-directory: ./agent | |
| run: bin/test_projects | |
| - uses: actions/setup-java@v4 | |
| name: Set up Java with Maven | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| cache: maven | |
| - uses: actions/setup-java@v4 | |
| name: Set up Java with sbt | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| cache: sbt | |
| - name: Run tests | |
| shell: bash | |
| env: | |
| BATS_LIB_PATH: ${{ steps.setup-bats.outputs.lib-path }} | |
| TERM: xterm | |
| working-directory: ./agent | |
| run: bin/run_tests |