Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/_ci-build.reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,16 @@ jobs:
echo "build_id=$(date +%s)-${{ github.run_id }}" >> $GITHUB_OUTPUT
echo "build_date=$(date -u +"%Y-%m-%dT%H:%M:%SZ")" >> $GITHUB_OUTPUT

# Build all packages using Turbo
# This creates the dist/ directories with compiled code
- name: Turbo Cache (GitHub Native)
uses: rharkor/caching-for-turbo@v1

- name: 🏗️ Build All Packages
run: pnpm run build
shell: bash

- name: Cache Report
run: echo "Check turbo summary above for HIT/MISS"

# Upload build artifacts, but only from Linux
# This is because Linux builds are most consistent and used by all other jobs
# The artifacts include all dist/ and dist-js/ directories from all packages
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/_ci-e2e.reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,17 @@ jobs:
cache_key_prefix: wdio-desktop-build
exact_cache_key: ${{ inputs.cache_key || github.run_id && format('{0}-{1}-{2}-{3}{4}', 'Linux', 'wdio-desktop-build', 'wdio-desktop-mobile', github.run_id, github.run_attempt > 1 && format('-rerun{0}', github.run_attempt) || '') || '' }}

# Display build information if available
- name: 📊 Show Build Information
if: inputs.build_id != '' && inputs.artifact_size != ''
shell: bash
run: |
echo "::notice::Build artifact: ID=${{ inputs.build_id }}, Size=${{ inputs.artifact_size }} bytes"
# Display build information if available
- name: 📊 Show Build Information
if: inputs.build_id != '' && inputs.artifact_size != ''
shell: bash
run: |
echo "::notice::Build artifact: ID=${{ inputs.build_id }}, Size=${{ inputs.artifact_size }} bytes"

- name: Turbo Cache (GitHub Native)
uses: rharkor/caching-for-turbo@v1

# Dynamically generate the Turbo filter for building test applications
# Dynamically generate the Turbo filter for building test applications
# This converts the scenario input into Turbo filter syntax
- name: 🪄 Generate Build Filter for Test Apps
id: gen-build
Expand Down
16 changes: 11 additions & 5 deletions .github/workflows/_ci-package.reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,14 @@ jobs:
echo "::notice::Build artifact: ID=${{ inputs.build_id }}, Size=${{ inputs.artifact_size }} bytes"
fi

# Check for distribution directories (minimal validation)
DIST_DIRS=$(find "${{ github.workspace }}" -path "*/dist" -type d | wc -l)
if [ "$DIST_DIRS" -lt 1 ]; then
echo "::warning::No dist directories found, build extraction may have failed"
fi
# Check for distribution directories (minimal validation)
DIST_DIRS=$(find "${{ github.workspace }}" -path "*/dist" -type d | wc -l)
if [ "$DIST_DIRS" -lt 1 ]; then
echo "::warning::No dist directories found, build extraction may have failed"
fi

- name: Turbo Cache (GitHub Native)
uses: rharkor/caching-for-turbo@v1

# Pack services from downloaded artifacts so --skip-build can use them
# This creates the .tgz files that the test script expects when --skip-build is used
Expand Down Expand Up @@ -243,3 +246,6 @@ jobs:
if: failure()
with:
timeout: '180000'

- name: Cache Report
run: echo "Check turbo summary above for HIT/MISS"
16 changes: 11 additions & 5 deletions .github/workflows/_ci-unit.reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,20 @@ jobs:
echo "::notice::Build artifact: ID=${{ inputs.build_id }}, Size=${{ inputs.artifact_size }} bytes"
fi

# Check for distribution directories (minimal validation)
DIST_DIRS=$(find "${{ github.workspace }}" -path "*/dist" -type d | wc -l)
if [ "$DIST_DIRS" -lt 1 ]; then
echo "::warning::No dist directories found, build extraction may have failed"
fi
# Check for distribution directories (minimal validation)
DIST_DIRS=$(find "${{ github.workspace }}" -path "*/dist" -type d | wc -l)
if [ "$DIST_DIRS" -lt 1 ]; then
echo "::warning::No dist directories found, build extraction may have failed"
fi

- name: Turbo Cache (GitHub Native)
uses: rharkor/caching-for-turbo@v1

# Run unit and integration tests using Turbo
# The --only flag ensures we only run tests for the packages that have changed
- name: 🧪 Execute Unit and Integration Tests
run: pnpm run test:unit test:integration --only
shell: bash

- name: Cache Report
run: echo "Check turbo summary above for HIT/MISS"