chore: CI fix attempt #138
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: Run Voting App Cypress Tests | |
on: | |
push: | |
branches-ignore: | |
- "main" | |
pull_request: | |
branches-ignore: | |
- "main" | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: ⬇️ Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: 🦾 Create .env file | |
run: | | |
echo "PORT=3000" > .env | |
echo "REACT_APP_VERSION=$npm_package_version" >> .env | |
- name: 🫡 Setup node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16 | |
- name: 🧘♀️ Download dependencies | |
run: | | |
cd ui | |
cd cip-1694 | |
npm i | |
- name: 🎳 Run tests | |
run: | | |
cd ui | |
cd cip-1694 | |
npm test |