perf: flatten home asset waterfall #794
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: π Deploy (staging) | |
| on: | |
| push: | |
| tags: | |
| - stage | |
| branches: | |
| - dev | |
| paths-ignore: | |
| - ".vscode/**" | |
| - "scripts/**" | |
| - "README.md" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} | |
| jobs: | |
| test: | |
| name: β‘ Remix Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: β¬οΈ Checkout repo | |
| uses: actions/checkout@v6 | |
| - name: π¦ Setup pnpm | |
| uses: pnpm/action-setup@v5 | |
| - name: β Setup node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: pnpm | |
| - name: π₯ Install deps | |
| run: pnpm install --frozen-lockfile | |
| - name: π Install Playwright browsers | |
| run: pnpm run test:install-browsers | |
| - name: β‘ Run Remix tests | |
| run: pnpm run test | |
| env: | |
| PUBLIC_STOREFRONT_API_TOKEN: ${{ secrets.PUBLIC_STOREFRONT_API_TOKEN }} | |
| deploy: | |
| name: π Deploy | |
| runs-on: ubuntu-latest | |
| needs: [test] | |
| steps: | |
| - name: β¬οΈ Checkout repo | |
| uses: actions/checkout@v6 | |
| - name: π Setup Fly | |
| uses: superfly/flyctl-actions/setup-flyctl@1.6 | |
| - name: π Deploy Staging | |
| run: flyctl deploy --remote-only --config ./fly.staging.toml --strategy bluegreen | |
| env: | |
| FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} |