build(deps): bump the maven group across 11 directories with 1 update #1295
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: "CI: Samples" | |
| on: | |
| push: | |
| branches: [ '**' ] | |
| paths: | |
| - 'samples/**' | |
| - 'modules/**' | |
| - 'atmosphere.js/src/chat/**' | |
| - 'cli/**' | |
| - 'pom.xml' | |
| - '.mvn/**' | |
| - '.github/workflows/samples-ci.yml' | |
| pull_request: | |
| branches: [ main ] | |
| paths: | |
| - 'samples/**' | |
| - 'modules/**' | |
| - 'atmosphere.js/src/chat/**' | |
| - 'cli/**' | |
| - 'pom.xml' | |
| - '.mvn/**' | |
| - '.github/workflows/samples-ci.yml' | |
| workflow_dispatch: | |
| jobs: | |
| test-samples: | |
| name: Test Sample - ${{ matrix.sample }} (SB${{ matrix.spring-boot-version }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| sample: | |
| - chat | |
| - spring-boot-chat | |
| - quarkus-chat | |
| - embedded-jetty-websocket-chat | |
| - spring-boot-ai-chat | |
| - spring-boot-rag-chat | |
| - spring-boot-multi-agent-startup-team | |
| spring-boot-version: [4] | |
| include: | |
| # Run Spring Boot samples with SB3 as well | |
| - sample: spring-boot-chat | |
| spring-boot-version: 3 | |
| - sample: spring-boot-ai-chat | |
| spring-boot-version: 3 | |
| - sample: spring-boot-rag-chat | |
| spring-boot-version: 3 | |
| exclude: | |
| # Non-Spring-Boot samples don't need the SB version axis | |
| - sample: chat | |
| spring-boot-version: 3 | |
| - sample: quarkus-chat | |
| spring-boot-version: 3 | |
| - sample: embedded-jetty-websocket-chat | |
| spring-boot-version: 3 | |
| fail-fast: false | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: 21 | |
| distribution: 'temurin' | |
| cache: 'maven' | |
| - name: Install Atmosphere Modules | |
| run: ./mvnw -B install -DskipTests -Dgpg.skip=true | |
| - name: Build Sample - ${{ matrix.sample }} | |
| run: ./mvnw -B package -DskipTests -Dgpg.skip=true -pl samples/${{ matrix.sample }} ${{ matrix.spring-boot-version == 3 && '-Pspring-boot3' || '' }} | |
| - name: Test Sample - ${{ matrix.sample }} | |
| run: ./mvnw -B test -Dgpg.skip=true -pl samples/${{ matrix.sample }} ${{ matrix.spring-boot-version == 3 && '-Pspring-boot3' || '' }} | |
| # embedded-jetty-websocket-chat has no tests (standalone demo app) | |
| if: matrix.sample != 'embedded-jetty-websocket-chat' | |
| env: | |
| LLM_MODE: fake | |
| - name: Upload Build Artifacts | |
| if: failure() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: sample-${{ matrix.sample }}-artifacts | |
| path: samples/${{ matrix.sample }}/target/ | |
| test-cli: | |
| name: Test Atmosphere CLI | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Node.js 22 | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| - name: Install jq + xmllint | |
| run: sudo apt-get update && sudo apt-get install -y jq libxml2-utils | |
| - name: Run CLI Tests | |
| run: ./cli/test-cli.sh | |
| build-frontends: | |
| name: Build Frontend - ${{ matrix.sample }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| sample: | |
| - chat | |
| - embedded-jetty-websocket-chat | |
| - quarkus-chat | |
| - spring-boot-chat | |
| - spring-boot-ai-chat | |
| - spring-boot-mcp-server | |
| - spring-boot-rag-chat | |
| fail-fast: false | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Node.js 22 | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| - name: Install atmosphere.js dependencies | |
| working-directory: atmosphere.js | |
| run: npm ci | |
| - name: Build atmosphere.js | |
| working-directory: atmosphere.js | |
| run: npm run build | |
| - name: Install frontend dependencies | |
| working-directory: samples/${{ matrix.sample }}/frontend | |
| run: npm install --no-audit --no-fund | |
| - name: Build frontend | |
| working-directory: samples/${{ matrix.sample }}/frontend | |
| run: npm run build |