Live Preview Image #1483
Workflow file for this run
This file contains hidden or 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: Chromium-macos run full tests suite | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| concurrency: | |
| group: pr-chromium-macos-${{ github.event.pull_request.number }} | |
| cancel-in-progress: true | |
| jobs: | |
| playwright-chromium-macos: | |
| timeout-minutes: 90 | |
| runs-on: macos-14 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: setup node | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 20 | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build phoenix | |
| run: npm run build | |
| - name: Install Playwright Browsers | |
| run: npx playwright install --with-deps | |
| - name: Run Playwright unit tests in Chromium | |
| uses: nick-fields/retry@v2 | |
| id: chromiumUnit | |
| continue-on-error: true | |
| with: | |
| timeout_minutes: 12 | |
| max_attempts: 3 | |
| command: npm run testChromium | |
| - name: Run Playwright integration tests in Chromium | |
| uses: nick-fields/retry@v2 | |
| id: chromiumIntegration | |
| continue-on-error: true | |
| with: | |
| timeout_minutes: 12 | |
| max_attempts: 3 | |
| command: npx cross-env TEST_ENV=integration npm run testChromium | |
| - name: Run Playwright mainview tests in Chromium | |
| uses: nick-fields/retry@v2 | |
| id: chromiumMainview | |
| continue-on-error: true | |
| with: | |
| timeout_minutes: 12 | |
| max_attempts: 3 | |
| command: npx cross-env TEST_ENV=mainview npm run testChromium | |
| - name: Run Playwright livepreview tests in Chromium | |
| uses: nick-fields/retry@v2 | |
| id: chromiumLivepreview | |
| continue-on-error: true | |
| with: | |
| timeout_minutes: 15 | |
| max_attempts: 3 | |
| command: npx cross-env TEST_ENV=livepreview npm run testChromium | |
| - name: Run Playwright LegacyInteg tests in Chromium | |
| uses: nick-fields/retry@v2 | |
| id: chromiumLegacyInteg | |
| continue-on-error: true | |
| with: | |
| timeout_minutes: 20 | |
| max_attempts: 3 | |
| command: npx cross-env TEST_ENV=LegacyInteg npm run testChromium | |
| - name: Fail on test runs failed in Chromium macOS | |
| if: steps.chromiumUnit.outcome == 'failure' || steps.chromiumIntegration.outcome == 'failure' || steps.chromiumMainview.outcome == 'failure' || steps.chromiumLivepreview.outcome == 'failure' || steps.chromiumLegacyInteg.outcome == 'failure' | |
| run: | | |
| echo "Chromium macOS Playwright tests failed, marking step as failed" | |
| echo "Failed tests:" | |
| if [ "${{ steps.chromiumUnit.outcome }}" == "failure" ]; then | |
| echo "- Run Playwright unit tests in Chromium" | |
| fi | |
| if [ "${{ steps.chromiumIntegration.outcome }}" == "failure" ]; then | |
| echo "- Run Playwright integration tests in Chromium" | |
| fi | |
| if [ "${{ steps.chromiumMainview.outcome }}" == "failure" ]; then | |
| echo "- Run Playwright mainview tests in Chromium" | |
| fi | |
| if [ "${{ steps.chromiumLivepreview.outcome }}" == "failure" ]; then | |
| echo "- Run Playwright livepreview tests in Chromium" | |
| fi | |
| if [ "${{ steps.chromiumLegacyInteg.outcome }}" == "failure" ]; then | |
| echo "- Run Playwright LegacyInteg tests in Chromium" | |
| fi | |
| exit 1 |