Skip to content

deployment

deployment #20

Workflow file for this run

name: ci
on:
pull_request: {}
push:
branches: ["main"]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: setup node
uses: actions/setup-node@v4
with:
node-version: 21
cache: "npm"
- name: install
run: npm ci
- name: subgraphs
run: |
npm run dev &
npx wait-on http-get://localhost:4200/_health --timeout 5s --verbose
- name: gateway
run: |
npm run gateway:once &
npx wait-on http-get://localhost:4000/_health --timeout 5s --verbose
- name: test
run: npm run test-all
deploy:
runs-on: ubuntu-latest
name: Deploy
if: github.ref == 'refs/heads/main'
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup node
uses: actions/setup-node@v4
with:
node-version: 21
cache: "npm"
- name: deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CF_API_TOKEN }}