Merge pull request #14977 from Automattic/vkarpov15/insert-many-resul… #3098
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Typescript Types | |
on: | |
pull_request: | |
paths: | |
- '.github/workflows/tsd.yml' | |
- 'package.json' | |
- 'types/**' | |
- 'test/types/**' | |
push: | |
paths: | |
- '.github/workflows/tsd.yml' | |
- 'package.json' | |
- 'types/**' | |
- 'test/types/**' | |
permissions: | |
contents: read | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
name: Lint TS-Files | |
steps: | |
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
- name: Setup node | |
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 | |
with: | |
node-version: 18 | |
- run: npm install | |
- name: Lint TS-Files | |
run: npm run lint-ts | |
test-ts-types: | |
needs: | |
- lint | |
runs-on: ubuntu-latest | |
name: Test Typescript Types | |
steps: | |
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
- name: Setup node | |
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 | |
with: | |
node-version: 16 | |
- run: npm install | |
- name: Typings | |
run: npm run test-tsd |