feat: split jest test and e2e test #1
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: E2E Tests | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| env: | |
| NODE_VERSION: 18 | |
| PNPM_VERSION: 8.5.0 | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: setup node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| - name: setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: ${{ env.PNPM_VERSION }} | |
| - name: Cypress run | |
| uses: cypress-io/github-action@v6 | |
| with: | |
| component: true | |
| build: pnpm run build | |
| start: pnpm run start | |
| browser: chrome | |
| env: | |
| COVERAGE: "true" | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v3 | |
| with: | |
| token: cf9245e0-e136-4e21-b0ee-35755fa0c493 | |
| files: coverage/cypress/lcov.info | |
| flags: appflowy_web_e2e | |
| name: codecov-umbrella-e2e | |
| fail_ci_if_error: true | |
| verbose: true |