This repository was archived by the owner on Oct 6, 2025. It is now read-only.
initial commit #1
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: Test | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build_and_test: | |
| runs-on: ubuntu-latest | |
| env: | |
| CI: true | |
| NODE_ENV: test | |
| steps: | |
| - name: Log node version | |
| run: node --version | |
| - uses: actions/checkout@v2 | |
| with: | |
| fetch-depth: '0' | |
| - name: Install dependencies | |
| run: yarn install --frozen-lockfile | |
| - name: Cypress run | |
| uses: cypress-io/github-action@v2 | |
| with: | |
| start: yarn start --port 8001 | |
| - name: Upload screenshots | |
| uses: actions/upload-artifact@v1 | |
| if: failure() | |
| with: | |
| name: cypress-screenshots | |
| path: cypress/screenshots | |
| - name: Upload videos | |
| uses: actions/upload-artifact@v1 | |
| if: always() | |
| with: | |
| name: cypress-videos | |
| path: cypress/videos | |