AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
ci(frontend): Speed up test jobs (#8949)
Reinier van der Leer582e12c766fb
diff --git a/.github/workflows/platform-frontend-ci.yml b/.github/workflows/platform-frontend-ci.ymlindex a1f68432bb..ec7dec0017 100644--- a/.github/workflows/platform-frontend-ci.yml+++ b/.github/workflows/platform-frontend-ci.yml@@ -23,6 +23,7 @@ jobs:steps:- uses: actions/checkout@v4+- name: Set up Node.jsuses: actions/setup-node@v4with:@@ -38,24 +39,12 @@ jobs:test:runs-on: ubuntu-latest+ strategy:+ fail-fast: false+ matrix:+ browser: [chromium, firefox, webkit]steps:- - name: Free Disk Space (Ubuntu)- uses: jlumbroso/free-disk-space@main- with:- # this might remove tools that are actually needed,- # if set to "true" but frees about 6 GB- tool-cache: false-- # all of these default to true, but feel free to set to- # "false" if necessary for your workflow- android: false- dotnet: false- haskell: false- large-packages: true- docker-images: true- swap-storage: true-- name: Checkout repositoryuses: actions/checkout@v4with:@@ -66,6 +55,12 @@ jobs:with:node-version: "21"+ - name: Free Disk Space (Ubuntu)+ uses: jlumbroso/free-disk-space@main+ with:+ large-packages: false # slow+ docker-images: false # limited benefit+- name: Copy default supabase .envrun: |cp ../supabase/docker/.env.example ../.env@@ -86,16 +81,16 @@ jobs:run: |cp .env.example .env- - name: Install Playwright Browsers- run: yarn playwright install --with-deps+ - name: Install Browser '${{ matrix.browser }}'+ run: yarn playwright install --with-deps ${{ matrix.browser }}- name: Run testsrun: |- yarn test+ yarn test --project=${{ matrix.browser }}- uses: actions/upload-artifact@v4if: ${{ !cancelled() }}with:- name: playwright-report+ name: playwright-report-${{ matrix.browser }}path: playwright-report/retention-days: 30