✨ main 同时支持 Cloudflare Workers #3
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: Cloudflare checks | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "cloudflare/**" | |
| - ".github/workflows/cloudflare-check.yml" | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - "cloudflare/**" | |
| - ".github/workflows/cloudflare-check.yml" | |
| permissions: | |
| contents: read | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| defaults: | |
| run: | |
| working-directory: cloudflare | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v5 | |
| with: | |
| node-version: 24 | |
| cache: npm | |
| cache-dependency-path: cloudflare/package-lock.json | |
| - run: npm ci | |
| - run: npm run check |