Skip to content

fix(schema): correct some schema IDs (#921) #2299

fix(schema): correct some schema IDs (#921)

fix(schema): correct some schema IDs (#921) #2299

Workflow file for this run

name: Test
"on":
push:
branches:
- main
- dependabot/npm_and_yarn/**
pull_request:
types:
- opened
- synchronize
jobs:
npmCi:
name: CI Checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
- run: npm ci
- run: npm test
typecheck:
name: Type Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
- run: npm ci
- run: cd payload-examples && npm i && cd ..
- run: npm run typecheck
do-types-need-regenerating:
name: Do types need to be regenerated?
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
- run: npm ci
- run: npm run build:schema
- run: npm run build:types
- run: git status
- run: |
git diff --exit-code || bash -c \
'echo "::error file=schema.d.ts::This needs to be regenerated by running \`build:types\`" && false'
do-examples-need-regenerating:
name: Do examples need to be regenerated?
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
- run: npm ci
- run: npm run build:webhooks -- --check --cached
- run: git status
- run: |
git diff --exit-code || bash -c \
'echo "::error file=api.github.com/index.json::This needs to be regenerated by running \`build:webhooks -- --cached\`" && false'