feat: cypress text #10
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: pageLoadTimeout=100000,baseUrl=http://localhost:3000 | |
- name: Set code coverage commit status 📫 | |
run: npx -p check-code-coverage set-gh-status | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |