[Not to be merged. Can be removed when new CLI is released] DXP-2486 Add streamx run, stream and batch commands for StreamX 2.0 (and remove streamx publish/unpublish/cloud/dev/init commands for now) #506
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: 'Test: CI build' | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| id-token: write | |
| # TODO restore to "contents: read" after removing the release steps | |
| contents: write | |
| jobs: | |
| linux-test-build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - id: 'auth' | |
| name: 'Authenticate to Google Cloud' | |
| uses: 'google-github-actions/auth@v2' | |
| with: | |
| workload_identity_provider: ${{ secrets.GCP_STREAMX_RELEASES_WORKLOAD_IDENTITY_PROVIDER }} | |
| service_account: ${{ secrets.GCP_STREAMX_RELEASES_READ_SA }} | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| cache: 'maven' | |
| - name: Build project | |
| run: | | |
| ./mvnw clean verify -P all-tests | |
| # TODO remove the release preview section | |
| - name: Configure Git | |
| run: | | |
| git config --global user.email "github.actions@streamx.dev" | |
| git config --global user.name "${GITHUB_ACTOR}" | |
| mkdir -p ~/.ssh | |
| printf '%s\n' "${{ secrets.SSH_SECRET_KEY }}" > ~/.ssh/id_rsa | |
| chmod 0600 ~/.ssh/id_rsa | |
| - name: Preview release prepare | |
| run: ./mvnw -B clean install -DskipTests -P preview | |
| - name: Preview release perform | |
| env: | |
| JRELEASER_GITHUB_TOKEN: ${{ secrets.JRELEASER_PREVIEW_GITHUB_TOKEN }} | |
| JRELEASER_HOMEBREW_GITHUB_TOKEN: ${{ secrets.JRELEASER_HOMEBREW_PREVIEW_GITHUB_TOKEN }} | |
| JRELEASER_SCOOP_GITHUB_TOKEN: ${{ secrets.JRELEASER_SCOOP_PREVIEW_GITHUB_TOKEN }} | |
| run: | | |
| ./mvnw -pl distribution jreleaser:assemble jreleaser:full-release -P preview | |
| # TODO end | |
| windows-test-build: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - id: 'auth' | |
| name: 'Authenticate to Google Cloud' | |
| uses: 'google-github-actions/auth@v2' | |
| with: | |
| workload_identity_provider: ${{ secrets.GCP_STREAMX_RELEASES_WORKLOAD_IDENTITY_PROVIDER }} | |
| service_account: ${{ secrets.GCP_STREAMX_RELEASES_READ_SA }} | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| cache: 'maven' | |
| - name: Build project | |
| run: | | |
| ./mvnw clean verify "-Djacoco.skip=true" -P all-tests |