cloudflare/cloudflare-typescript
Publicmirrored fromhttps://github.com/cloudflare/cloudflare-typescriptAvailable
.github/workflows/ci.yml
67lines · modecode
| 1 | name: CI |
| 2 | on: |
| 3 | push: |
| 4 | branches: |
| 5 | - main |
| 6 | pull_request: |
| 7 | branches: |
| 8 | - main |
| 9 | |
| 10 | jobs: |
| 11 | lint: |
| 12 | name: lint |
| 13 | runs-on: ubuntu-latest |
| 14 | |
| 15 | |
| 16 | steps: |
| 17 | - uses: actions/checkout@v4 |
| 18 | |
| 19 | - name: Set up Node |
| 20 | uses: actions/setup-node@v4 |
| 21 | with: |
| 22 | node-version: '18' |
| 23 | |
| 24 | - name: Install dependencies |
| 25 | run: yarn install |
| 26 | |
| 27 | - name: Check types |
| 28 | run: ./scripts/lint |
| 29 | test: |
| 30 | name: test |
| 31 | runs-on: ubuntu-latest |
| 32 | |
| 33 | steps: |
| 34 | - uses: actions/checkout@v4 |
| 35 | |
| 36 | - name: Set up Node |
| 37 | uses: actions/setup-node@v4 |
| 38 | with: |
| 39 | node-version: '18' |
| 40 | |
| 41 | - name: Bootstrap |
| 42 | run: ./scripts/bootstrap |
| 43 | |
| 44 | - name: Run tests |
| 45 | run: ./scripts/test |
| 46 | examples: |
| 47 | name: examples |
| 48 | runs-on: ubuntu-latest |
| 49 | |
| 50 | steps: |
| 51 | - uses: actions/checkout@v4 |
| 52 | |
| 53 | - name: Set up Node |
| 54 | uses: actions/setup-node@v4 |
| 55 | with: |
| 56 | node-version: '18' |
| 57 | - name: Install dependencies |
| 58 | run: | |
| 59 | yarn install |
| 60 | |
| 61 | - env: |
| 62 | CLOUDFLARE_ACCOUNT_ID: f037e56e89293a057740de681ac9abbe |
| 63 | CLOUDFLARE_EMAIL: terraform-acceptance-test@cfapi.net |
| 64 | CLOUDFLARE_ZONE_ID: 0da42c8d2132a9ddaf714f9e7c92011 |
| 65 | CLOUDFLARE_API_KEY: ${{ secrets.CLOUDFLARE_API_KEY }} |
| 66 | run: | |
| 67 | yarn tsn ./examples/workers/ai/demo.ts |
| 68 | |