add export default p5 at end of global.d.ts
#7210
Workflow file for this run
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 | |
| id: test | |
| run: npm test | |
| continue-on-error: true | |
| env: | |
| CI: true | |
| - name: Generate Visual Test Report | |
| if: always() | |
| run: node visual-report.js | |
| env: | |
| CI: true | |
| - name: Upload Visual Test Report | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: visual-test-report | |
| path: test/unit/visual/visual-report.html | |
| retention-days: 14 | |
| - 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 | |
| if: steps.test.outcome == 'success' | |
| run: bash <(curl -s https://codecov.io/bash) -f coverage/coverage-final.json | |
| env: | |
| CI: true | |
| - name: fail job if tests failed | |
| if: steps.test.outcome != 'success' | |
| run: exit 1 |