Merge pull request #1 from johnwmail/dependabot/npm_and_yarn/picomatc… #9
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: Test Worker | |
| on: | |
| push: | |
| branches: [main, dev] | |
| pull_request: | |
| branches: [main, dev] | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Write app version metadata | |
| run: npm run version:write | |
| - name: Type check | |
| run: npm run typecheck | |
| - name: Run tests | |
| run: npm run test | |
| - name: Validate Wrangler deploy bundle | |
| run: npm run deploy:dry-run |