Refactor typescript type generation #6776
This file contains hidden or 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: Testing | |
on: | |
push: | |
branches: | |
- main | |
- dev-2.0 | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Use Node.js 20.x | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 20.x | |
- name: Get node modules | |
run: npm ci | |
env: | |
CI: true | |
- name: build and test | |
run: npm test | |
env: | |
CI: true | |
- name: generate TypeScript types | |
run: npm run generate-types | |
env: | |
CI: true | |
- name: test TypeScript types | |
run: npm run test:types | |
env: | |
CI: true | |
- name: report test coverage | |
run: bash <(curl -s https://codecov.io/bash) -f coverage/coverage-final.json | |
env: | |
CI: true |