ci: run cy tests into suites #7520
Workflow file for this run
This file contains 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 - test | |
on: | |
pull_request: | |
push: | |
branches: | |
- 'main' | |
jobs: | |
setup: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/[email protected] | |
with: | |
node-version: 22 | |
cache: 'yarn' | |
- name: Install Dependencies | |
run: yarn --frozen-lockfile | |
# Cache node_modules after installing dependencies | |
- name: Cache node_modules | |
uses: actions/cache@v4 | |
with: | |
path: node_modules | |
key: node-modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }} | |
restore-keys: | | |
node-modules-${{ runner.os }}- | |
# Cache Cypress binary | |
- name: Cache Cypress Binary | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/Cypress | |
key: cypress-${{ runner.os }}-${{ hashFiles('yarn.lock') }} | |
restore-keys: | | |
cypress-${{ runner.os }}- | |
- name: Test Build | |
run: yarn ci:testbuild | |
- name: List Build Folders (Debugging) | |
run: | | |
echo "Listing all packages and their contents..." | |
ls -R packages/ # This should now reflect your folder structure under packages/ | |
- name: Upload Build Artifacts (All Packages) | |
uses: actions/upload-artifact@v4 | |
with: | |
name: build-artifacts | |
path: | | |
packages/ai/dist | |
packages/base/dist | |
packages/main/dist | |
packages/fiori/dist | |
packages/compat/dist | |
packages/icons/dist | |
packages/icons-tnt/dist | |
packages/icons-business-suite/dist | |
packages/localization/dist | |
packages/theming/dist | |
packages/ai/src/generated | |
packages/base/src/generated | |
packages/main/src/generated | |
packages/fiori/src/generated | |
packages/compat/src/generated | |
packages/icons/src/generated | |
packages/icons-tnt/src/generated | |
packages/icons-business-suite/src/generated | |
packages/localization/src/generated | |
packages/theming/src/generated | |
continue-on-error: true | |
check: | |
needs: setup | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
suite: ['base', 'compat', 'ai', 'main:suite-1', 'main:cy:suite-1', 'main:suite-2', 'main:cy:suite-2', 'fiori'] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/[email protected] | |
with: | |
node-version: 22 | |
cache: 'yarn' | |
# Restore the node_modules cache from the setup job | |
- name: Restore node_modules Cache | |
uses: actions/cache@v4 | |
with: | |
path: node_modules | |
key: node-modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }} | |
restore-keys: | | |
node-modules-${{ runner.os }}- | |
# Restore the Cypress binary cache from the setup job | |
- name: Restore Cypress Cache | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/Cypress | |
key: cypress-${{ runner.os }}-${{ hashFiles('yarn.lock') }} | |
restore-keys: | | |
cypress-${{ runner.os }}- | |
- name: Download Build Artifacts (All Packages) | |
uses: actions/download-artifact@v4 | |
with: | |
name: build-artifacts | |
path: packages | |
- name: Test | |
run: yarn ci:test:${{ matrix.suite }} |