release: UI5 CLI packages main #1410
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: Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| unit: | |
| name: "${{ matrix.workspace }} (Node ${{ matrix.version }}, ${{ matrix.os }})" | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| version: [22, 24] | |
| os: [ubuntu-24.04, windows-2025, macos-15] | |
| workspace: | |
| - "@ui5/builder" | |
| - "@ui5/cli" | |
| - "@ui5/fs" | |
| - "@ui5/logger" | |
| - "@ui5/project" | |
| - "@ui5/server" | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ matrix.version }} | |
| # This is needed as npm 11 has issues with running "npm ci" on projects that use "overrides" | |
| - name: Install recent npm version (Node 24 only) | |
| if: matrix.version == 24 | |
| run: npm install -g npm@11 && npm --version | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run unit tests | |
| run: npm run unit --workspace=${{ matrix.workspace }} | |
| # Aggregator so branch protection can require a single "Tests" check | |
| # instead of every matrix combination. | |
| tests: | |
| name: Tests | |
| needs: unit | |
| if: always() | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Check matrix result | |
| run: | | |
| if [ "${{ needs.unit.result }}" != "success" ]; then | |
| echo "Unit test matrix result: ${{ needs.unit.result }}" | |
| exit 1 | |
| fi |