diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 458ead581d..9bea647b73 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -126,20 +126,20 @@ jobs: - name: build electron shell: bash run: yarn tron:package - - name: Run ubuntu/chrome snapshots - if: ${{ matrix.os == 'namespace-profile-ubuntu-8-cores' && matrix.shardIndex == 1 }} - shell: bash - # TODO: break this in its own job, for now it's not slowing down the overall execution as ubuntu is the quickest, - # but we could do better. This forces a large 1/1 shard of all 20 snapshot tests that runs in about 3 minutes. - run: | - PLATFORM=web yarn playwright test --config=playwright.config.ts --retries="3" --update-snapshots --grep=@snapshot --shard=1/1 - env: - CI: true - NODE_ENV: development - VITE_KC_DEV_TOKEN: ${{ secrets.KITTYCAD_API_TOKEN_DEV }} - VITE_KC_SKIP_AUTH: true - token: ${{ secrets.KITTYCAD_API_TOKEN_DEV }} - snapshottoken: ${{ secrets.KITTYCAD_API_TOKEN }} + # - name: Run ubuntu/chrome snapshots + # if: ${{ matrix.os == 'namespace-profile-ubuntu-8-cores' && matrix.shardIndex == 1 }} + # shell: bash + # # TODO: break this in its own job, for now it's not slowing down the overall execution as ubuntu is the quickest, + # # but we could do better. This forces a large 1/1 shard of all 20 snapshot tests that runs in about 3 minutes. + # run: | + # PLATFORM=web yarn playwright test --config=playwright.config.ts --retries="3" --update-snapshots --grep=@snapshot --shard=1/1 + # env: + # CI: true + # NODE_ENV: development + # VITE_KC_DEV_TOKEN: ${{ secrets.KITTYCAD_API_TOKEN_DEV }} + # VITE_KC_SKIP_AUTH: true + # token: ${{ secrets.KITTYCAD_API_TOKEN_DEV }} + # snapshottoken: ${{ secrets.KITTYCAD_API_TOKEN }} - uses: actions/upload-artifact@v4 if: ${{ !cancelled() && (success() || failure()) }} with: @@ -162,20 +162,20 @@ jobs: then echo "modified=true" >> $GITHUB_OUTPUT else echo "modified=false" >> $GITHUB_OUTPUT fi - - name: Commit changes, if any - if: steps.git-check.outputs.modified == 'true' - shell: bash - run: | - git add . - git config --local user.email "github-actions[bot]@users.noreply.github.com" - git config --local user.name "github-actions[bot]" - git remote set-url origin https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git - git fetch origin - echo ${{ github.head_ref }} - git checkout ${{ github.head_ref }} - git commit -am "A snapshot a day keeps the bugs away! 📷🐛 (OS: ${{matrix.os}})" || true - git push - git push origin ${{ github.head_ref }} + # - name: Commit changes, if any + # if: steps.git-check.outputs.modified == 'true' + # shell: bash + # run: | + # git add . + # git config --local user.email "github-actions[bot]@users.noreply.github.com" + # git config --local user.name "github-actions[bot]" + # git remote set-url origin https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git + # git fetch origin + # echo ${{ github.head_ref }} + # git checkout ${{ github.head_ref }} + # git commit -am "A snapshot a day keeps the bugs away! 📷🐛 (OS: ${{matrix.os}})" || true + # git push + # git push origin ${{ github.head_ref }} # only upload artifacts if there's actually changes - uses: actions/upload-artifact@v4 if: steps.git-check.outputs.modified == 'true'