Skip to content

build(deps): lock file maintenance (#975) #2408

build(deps): lock file maintenance (#975)

build(deps): lock file maintenance (#975) #2408

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@11bd71901bbe5b1630ceea73d27597364c9af683 # 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@11bd71901bbe5b1630ceea73d27597364c9af683 # 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@11bd71901bbe5b1630ceea73d27597364c9af683 # 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@11bd71901bbe5b1630ceea73d27597364c9af683 # 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'