Throw error on unintercepted e2e requests to the api #208
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: Tests | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| install: | |
| name: Setup and quick checks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup environment | |
| uses: ./.github/actions/setup | |
| - name: Lint | |
| run: 'yarn lint --rule "react-compiler/react-compiler: off"' | |
| - name: Prettier | |
| run: yarn prettier | |
| - name: Typecheck | |
| run: yarn typecheck | |
| unit: | |
| name: Unit tests | |
| runs-on: ubuntu-latest | |
| needs: install | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup environment | |
| uses: ./.github/actions/setup | |
| - name: Unit tests | |
| run: yarn test:coverage | |
| - name: Upload coverage report | |
| uses: codecov/codecov-action@v5 | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| e2e: | |
| name: End to End tests | |
| runs-on: ubuntu-latest | |
| needs: install | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup environment | |
| uses: ./.github/actions/setup | |
| - name: E2E tests | |
| uses: cypress-io/github-action@v7 | |
| with: | |
| install: false | |
| build: npx cypress info | |
| command: yarn test:e2e:rec | |
| env: | |
| CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | |
| - name: Upload screenshots | |
| uses: actions/upload-artifact@v4 | |
| if: failure() | |
| with: | |
| name: screenshots | |
| path: cypress/screenshots | |
| - name: Upload videos | |
| uses: actions/upload-artifact@v4 | |
| if: failure() | |
| with: | |
| name: videos | |
| path: cypress/videos |