chore(): Cleanup and organize deps (#13940)
* chore(): Cleanup and organize deps * chore(): Cleanup and organize deps * chore(): Cleanup and organize deps * chore(): Cleanup and organize deps * chore(): Cleanup and organize deps * chore(): Cleanup and organize deps * Create lucky-poets-scream.md * chore(): Cleanup and organize deps * chore(): Cleanup and organize deps * chore(): Cleanup and organize deps * chore(): Cleanup and organize deps * dedupe snapshot this build * split into 4 shard * re configure packages integration tests * re configure packages integration tests * re configure packages integration tests * re configure packages integration tests * update scripts * update scripts * update scripts * update scripts * update scripts * update scripts * update scripts * update scripts * reduce shard for packages
This commit is contained in:
committed by
GitHub
parent
cdbb4b925b
commit
afb40d437b
7
.github/actions/cache-deps/action.yml
vendored
7
.github/actions/cache-deps/action.yml
vendored
@@ -3,6 +3,9 @@ description: Creates a cache with the given extension for monorepo dependencies
|
||||
inputs:
|
||||
extension:
|
||||
description: Extension for cache name
|
||||
skip-build:
|
||||
description: Skip build step (default false)
|
||||
default: "false"
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
@@ -11,12 +14,16 @@ runs:
|
||||
with:
|
||||
path: |
|
||||
.yarn/cache
|
||||
node_modules
|
||||
.pnp.*
|
||||
key: ${{ runner.os }}-yarn-${{inputs.extension}}-v8-${{ hashFiles('**/yarn.lock') }}-3
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-${{inputs.extension}}-v8-3
|
||||
# We want to only bootstrap and install if no cache is found.
|
||||
- run: yarn install --immutable --inline-builds
|
||||
shell: bash
|
||||
if: steps.cache.outputs.cache-hit != 'true'
|
||||
|
||||
- run: yarn build
|
||||
shell: bash
|
||||
if: ${{ inputs.skip-build != 'true' }}
|
||||
|
||||
58
.github/workflows/action.yml
vendored
58
.github/workflows/action.yml
vendored
@@ -39,6 +39,16 @@ jobs:
|
||||
with:
|
||||
extension: pipeline
|
||||
|
||||
- name: Upload build artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: build-artifacts
|
||||
path: |
|
||||
packages/**/dist
|
||||
integration-tests/**/dist
|
||||
!packages/**/node_modules
|
||||
retention-days: 1
|
||||
|
||||
unit-tests-matrix:
|
||||
needs: setup
|
||||
name: Unit Tests - Shard ${{ matrix.shard_index }}
|
||||
@@ -46,7 +56,7 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: true
|
||||
matrix:
|
||||
shard_index: [1, 2, 3]
|
||||
shard_index: [1, 2, 3, 4]
|
||||
env:
|
||||
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
||||
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
|
||||
@@ -64,9 +74,16 @@ jobs:
|
||||
uses: ./.github/actions/cache-deps
|
||||
with:
|
||||
extension: pipeline
|
||||
skip-build: "true"
|
||||
|
||||
- name: Download build artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: build-artifacts
|
||||
path: .
|
||||
|
||||
- name: Run unit tests
|
||||
run: yarn test:chunk -- --shard=${{ matrix.shard_index }}/3 --maxWorkers=${{ steps.cpu-cores.outputs.count }} --passWithNoTests
|
||||
run: yarn test:chunk -- --shard=${{ matrix.shard_index }}/4 --maxWorkers=${{ steps.cpu-cores.outputs.count }} --passWithNoTests
|
||||
|
||||
unit-tests:
|
||||
if: ${{ always() }}
|
||||
@@ -85,12 +102,12 @@ jobs:
|
||||
|
||||
integration-tests-packages-matrix:
|
||||
needs: setup
|
||||
name: Packages integration tests (${{ matrix.group }})
|
||||
name: Package Integration Tests - Shard ${{ matrix.shard_index }}
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: true
|
||||
matrix:
|
||||
group: ["slow", "fast"]
|
||||
shard_index: [1, 2, 3]
|
||||
env:
|
||||
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
||||
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
|
||||
@@ -132,9 +149,16 @@ jobs:
|
||||
uses: ./.github/actions/cache-deps
|
||||
with:
|
||||
extension: pipeline
|
||||
skip-build: "true"
|
||||
|
||||
- name: Run integration tests
|
||||
run: yarn test:integration:packages:${{ matrix.group }} -- --maxWorkers=${{ steps.cpu-cores.outputs.count }}
|
||||
- name: Download build artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: build-artifacts
|
||||
path: .
|
||||
|
||||
- name: Run package integration tests
|
||||
run: yarn test:integration:packages -- --shard=${{ matrix.shard_index }}/3 --maxWorkers=${{ steps.cpu-cores.outputs.count }}
|
||||
env:
|
||||
DB_PASSWORD: postgres
|
||||
DB_USERNAME: postgres
|
||||
@@ -161,7 +185,7 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: true
|
||||
matrix:
|
||||
shard_index: [1, 2, 3]
|
||||
shard_index: [1, 2, 3, 4]
|
||||
env:
|
||||
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
||||
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
|
||||
@@ -203,9 +227,16 @@ jobs:
|
||||
uses: ./.github/actions/cache-deps
|
||||
with:
|
||||
extension: pipeline
|
||||
skip-build: "true"
|
||||
|
||||
- name: Download build artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: build-artifacts
|
||||
path: .
|
||||
|
||||
- name: Run HTTP integration tests
|
||||
run: yarn test:integration:http -- --shard=${{ matrix.shard_index }}/3 --maxWorkers=${{ steps.cpu-cores.outputs.count }}
|
||||
run: yarn test:integration:http -- --shard=${{ matrix.shard_index }}/4 --maxWorkers=${{ steps.cpu-cores.outputs.count }}
|
||||
env:
|
||||
DB_USERNAME: postgres
|
||||
DB_PASSWORD: postgres
|
||||
@@ -231,7 +262,7 @@ jobs:
|
||||
name: Module Integration Tests - Shard ${{ matrix.shard_index }}
|
||||
strategy:
|
||||
matrix:
|
||||
shard_index: [1, 2, 3]
|
||||
shard_index: [1, 2, 3, 4]
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
||||
@@ -274,9 +305,16 @@ jobs:
|
||||
uses: ./.github/actions/cache-deps
|
||||
with:
|
||||
extension: pipeline
|
||||
skip-build: "true"
|
||||
|
||||
- name: Download build artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: build-artifacts
|
||||
path: .
|
||||
|
||||
- name: Run Modules integration tests
|
||||
run: yarn test:integration:modules -- --shard=${{ matrix.shard_index }}/3 --maxWorkers=${{ steps.cpu-cores.outputs.count }}
|
||||
run: yarn test:integration:modules -- --shard=${{ matrix.shard_index }}/4 --maxWorkers=${{ steps.cpu-cores.outputs.count }}
|
||||
env:
|
||||
DB_USERNAME: postgres
|
||||
DB_PASSWORD: postgres
|
||||
|
||||
1
.github/workflows/snapshot-this.yml
vendored
1
.github/workflows/snapshot-this.yml
vendored
@@ -86,6 +86,7 @@ jobs:
|
||||
uses: ./.github/actions/cache-deps
|
||||
with:
|
||||
extension: snapshot-this
|
||||
skip-build: "true"
|
||||
|
||||
- name: Build Packages
|
||||
shell: "bash"
|
||||
|
||||
Reference in New Issue
Block a user