internal: Bootstrap sbt-airframe in release workflows (release 2026.2.1) #5045
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: sbt-integration | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| changes: | |
| name: Detect Changes | |
| runs-on: ubuntu-latest | |
| outputs: | |
| sbt-integration: ${{ steps.filter.outputs.sbt-integration }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dorny/paths-filter@v4 | |
| id: filter | |
| with: | |
| filters: | | |
| sbt-integration: | |
| - '**.scala' | |
| - '**.java' | |
| - '**.sbt' | |
| - '.scalafmt.conf' | |
| - '.github/workflows/sbt-integration.yml' | |
| - 'project/build.properties' | |
| - AIRSPEC_VERSION | |
| sbt_airframe: | |
| name: sbt-airframe | |
| runs-on: ubuntu-latest | |
| needs: changes | |
| if: needs.changes.outputs.sbt-integration == 'true' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| # Fetch all tags so that sbt-dynver can find the previous release version | |
| fetch-depth: 0 | |
| - run: git fetch --tags -f | |
| - uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'zulu' | |
| java-version: '21' | |
| # The root build's metabuild needs the (not-yet-released) sbt-airframe plugin to load. | |
| - uses: ./.github/actions/bootstrap-sbt-airframe | |
| - name: Get Airframe version | |
| run: echo "AIRFRAME_VERSION=$(./scripts/dynver.sh)" >> $GITHUB_ENV | |
| - name: Check Airframe version | |
| run: echo ${AIRFRAME_VERSION} | |
| - name: Create a snapshot of Airframe | |
| run: ./sbt publishSbtDevLocal | |
| - name: Run sbt-airframe plugin tests | |
| run: AIRFRAME_VERSION=${AIRFRAME_VERSION} ./sbt scripted | |
| working-directory: ./sbt-airframe |