feat(react-email): auto-detect package manager for email build #10461
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: Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - canary | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| jobs: | |
| tests: | |
| runs-on: depot-ubuntu-22.04-8 | |
| container: | |
| image: mcr.microsoft.com/playwright:v1.59.1-noble | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 | |
| with: | |
| fetch-depth: 1 | |
| - run: git config --global --add safe.directory $GITHUB_WORKSPACE | |
| - name: pnpm setup | |
| uses: pnpm/action-setup@738f428026a1f5a72398de22aeed83d859c4a660 | |
| - name: Install packages | |
| run: pnpm install --frozen-lockfile --prefer-offline | |
| - name: Run Build | |
| run: pnpm build | |
| env: | |
| SPAM_ASSASSIN_HOST: ${{ secrets.SPAM_ASSASSIN_HOST }} | |
| SPAM_ASSASSIN_PORT: ${{ secrets.SPAM_ASSASSIN_PORT }} | |
| TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
| TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
| - name: Run Tests | |
| run: pnpm test | |
| env: | |
| PLAYWRIGHT_BROWSERS_PATH: /ms-playwright | |
| SPAM_ASSASSIN_HOST: ${{ secrets.SPAM_ASSASSIN_HOST }} | |
| SPAM_ASSASSIN_PORT: ${{ secrets.SPAM_ASSASSIN_PORT }} | |
| TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
| TURBO_TEAM: ${{ secrets.TURBO_TEAM }} |