feat: cypress text #18
Workflow file for this run
This file contains 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: Cypress Tests | |
on: push | |
jobs: | |
cypress-run: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18.x' | |
- name: Install dependencies | |
run: yarn | |
- name: Set Environment Variables | |
run: | | |
echo "REACT_APP_API_URL=http://localhost:3000" >> $GITHUB_ENV | |
- name: Build | |
run: | | |
cd src | |
yarn build | |
- name: Cypress run | |
uses: cypress-io/github-action@v6 | |
with: | |
start: yarn start | |
config: baseUrl=http://localhost:3000 | |
wait-on-timeout: 200 | |
- name: Generate code coverage report | |
run: npx nyc report --reporter=text-summary |