chore(dependencies): update dependency start-server-and-test to v2 #14826
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
| on: | |
| push: | |
| pull_request: | |
| name: Main workflow | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@master | |
| - name: Use Node.js 18 | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 18 | |
| - run: yarn | |
| - run: yarn test | |
| - uses: codecov/[email protected] | |
| lighthouse: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Use Node.js 18 | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 18 | |
| - run: yarn | |
| - run: yarn build | |
| - name: Run Lighthouse | |
| uses: treosh/lighthouse-ci-action@v9 | |
| with: | |
| configPath: './.github/lighthouserc.json' | |
| temporaryPublicStorage: true | |
| cypress: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Use Node.js 18 | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 18 | |
| - uses: cypress-io/github-action@v5 | |
| with: | |
| build: yarn build | |
| start: yarn start | |
| wait-on: 'http://localhost:3000' | |
| config: pageLoadTimeout=100000,baseUrl=http://localhost:3000 | |
| - uses: actions/upload-artifact@v3 | |
| if: failure() | |
| with: | |
| name: cypress-screenshots | |
| path: cypress/screenshots | |
| - uses: actions/upload-artifact@v3 | |
| if: always() | |
| with: | |
| name: cypress-videos | |
| path: cypress/videos |