test: turn off ResizeObserver error #56
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: Project INflow | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: ['react-flow', 'main'] | |
| paths: [INflow/**] | |
| pull_request: | |
| branches: ['**'] | |
| paths: [INflow/**] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }}-INflow | |
| cancel-in-progress: true | |
| jobs: | |
| formatter: | |
| name: Formatter | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Clone project | |
| uses: actions/checkout@v4 | |
| - uses: ./.github/actions/setup-node | |
| - name: Run Prettier | |
| working-directory: ./INflow | |
| run: npm run format | |
| linter: | |
| name: Linter | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Clone project | |
| uses: actions/checkout@v4 | |
| - uses: ./.github/actions/setup-node | |
| - name: Run ESlint | |
| working-directory: ./INflow | |
| run: npm run lint | |
| tests: | |
| name: Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Clone project | |
| uses: actions/checkout@v4 | |
| - uses: ./.github/actions/setup-node | |
| - name: Run Cypress | |
| uses: cypress-io/github-action@v6.10.0 | |
| with: | |
| working-directory: ./INflow | |
| start: npm run dev | |
| wait-on: 'http://localhost:5173' | |
| browser: chrome | |
| - name: Get coverage | |
| working-directory: ./INflow | |
| run: | | |
| npx nyc report | |
| echo '## Coverage' >> $GITHUB_STEP_SUMMARY | |
| echo '```' >> $GITHUB_STEP_SUMMARY | |
| npx nyc report --reporter=text-summary >> $GITHUB_STEP_SUMMARY | |
| echo '```' >> $GITHUB_STEP_SUMMARY |