Skip to content

build(deps): lock file maintenance #2388

build(deps): lock file maintenance

build(deps): lock file maintenance #2388

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@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # 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@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # 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@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # 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@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # 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'