Correct date #256
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: ci | |
| on: | |
| push: | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| lint: | |
| name: Check for build and type issues | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| - name: install node | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 24 | |
| - name: install pnpm | |
| uses: pnpm/action-setup@v2 | |
| with: | |
| version: 10 | |
| run_install: false | |
| - name: Get pnpm store directory | |
| shell: bash | |
| run: | | |
| echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | |
| - name: Setup pnpm cache | |
| uses: actions/cache@v3 | |
| with: | |
| path: ${{ env.STORE_PATH }} | |
| key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pnpm-store- | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Cache Playwright browsers | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.cache/ms-playwright | |
| key: ${{ runner.os }}-playwright-${{ hashFiles('**/pnpm-lock.yaml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-playwright- | |
| - name: Install Playwright browsers | |
| run: pnpm exec playwright install chromium | |
| # use astro check for issues | |
| - name: Run check | |
| run: pnpm astro check | |
| # start development server in background | |
| - name: Start development server | |
| run: pnpm dev & | |
| # wait for server to be ready | |
| - name: Wait for dev server | |
| run: | | |
| echo "Waiting for development server to start..." | |
| for i in {1..30}; do | |
| if curl -s http://localhost:4321 >/dev/null 2>&1; then | |
| echo "✅ Development server is ready" | |
| break | |
| fi | |
| echo "⏳ Waiting for server... attempt $i/30" | |
| sleep 2 | |
| done | |
| # Verify server is actually responding | |
| if ! curl -s http://localhost:4321 >/dev/null 2>&1; then | |
| echo "❌ Development server failed to start" | |
| exit 1 | |
| fi | |
| # run tests (requires running server) | |
| - name: Run tests | |
| run: pnpm test | |
| # ensure build works | |
| - name: Run build | |
| run: pnpm build |