chore: update epicshop #636
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 | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| on: | |
| push: | |
| branches: | |
| - 'main' | |
| pull_request: | |
| branches: | |
| - 'main' | |
| jobs: | |
| setup: | |
| name: 🔧 Setup | |
| timeout-minutes: 30 | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: ⬇️ Checkout repo | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| sparse-checkout-cone-mode: true | |
| # this is necessary because it's such a huge repo... I regret making this all in one workshop in retrospect... | |
| sparse-checkout: | | |
| . | |
| epicshop | |
| exercises/21.redirect-cookie | |
| - name: Verify sparse checkout | |
| run: | | |
| ls | |
| echo "---" | |
| echo "epicshop" | |
| ls epicshop | |
| echo "---" | |
| echo "exercises" | |
| ls exercises | |
| echo "---" | |
| echo "exercises/21.redirect-cookie" | |
| ls exercises/21.redirect-cookie | |
| - name: ⎔ Setup node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| - name: 🔧 Run fix | |
| run: node ./epicshop/fix-ts-config.js | |
| - name: ▶️ Run setup script | |
| run: npm run setup | |
| env: | |
| SKIP_PLAYWRIGHT: true | |
| - name: ʦ TypeScript | |
| # running in individual workspaces otherwise we can run out of memory | |
| run: npm run --workspaces --if-present typecheck | |
| - name: ⬣ ESLint | |
| # running in individual workspaces otherwise we can run out of memory | |
| run: npm run --workspaces --if-present lint | |
| deploy: | |
| name: 🚀 Deploy | |
| timeout-minutes: 10 | |
| runs-on: ubuntu-latest | |
| # only deploy main branch on pushes | |
| if: ${{ github.ref == 'refs/heads/main' && github.event_name == 'push' }} | |
| steps: | |
| - name: ⬇️ Checkout repo | |
| uses: actions/checkout@v4 | |
| - name: 🎈 Setup Fly | |
| uses: superfly/flyctl-actions/setup-flyctl@1.5 | |
| - name: 🚀 Deploy | |
| run: flyctl deploy --remote-only | |
| working-directory: ./epicshop | |
| env: | |
| FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} |