feat:#684 - Delete account #644
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 End-to-End Tests | |
on: | |
pull_request: | |
branches: ["*"] | |
workflow_dispatch: | |
jobs: | |
cypress: | |
runs-on: ubuntu-latest | |
environment: Development | |
steps: | |
- name: π« Checkout | |
uses: actions/checkout@v3 | |
- name: π Set up NodeJS 18.14.0 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.14.0 | |
cache: 'npm' | |
- name: π Create .env file from GitHub secrets | |
run: | | |
echo VITE_FIREBASE_API_KEY=${{ secrets.VITE_FIREBASE_API_KEY }} > .env | |
echo VITE_FIREBASE_APP_ID=${{ secrets.VITE_FIREBASE_APP_ID }} >> .env | |
echo VITE_FIREBASE_AUTH_DOMAIN=${{ secrets.VITE_FIREBASE_AUTH_DOMAIN }} >> .env | |
echo VITE_FIREBASE_MEASUREMENTID=${{ secrets.VITE_FIREBASE_MEASUREMENTID }} >> .env | |
echo VITE_FIREBASE_MESSAGING_SENDER_ID=${{ secrets.VITE_FIREBASE_MESSAGING_SENDER_ID }} >> .env | |
echo VITE_FIREBASE_PROJECT_ID=${{ secrets.VITE_FIREBASE_PROJECT_ID }} >> .env | |
echo VITE_FIREBASE_STORAGE_BUCKET=${{ secrets.VITE_FIREBASE_STORAGE_BUCKET }} >> .env | |
echo VITE_FIREBASE_VAPID_KEY=${{ secrets.VITE_FIREBASE_VAPID_KEY }} >> .env | |
- name: π Verify .env file contents | |
run: cat .env | |
- name: π» Run Cypress | |
uses: cypress-io/github-action@v5 | |
with: | |
start: npm run cy:test | |
wait-on: http://localhost:9200/ | |
wait-on-timeout: 600 | |
browser: chrome | |
headed: true | |
record: true | |
parallel: true | |
env: | |
# For recording and parallelization to work you must set your CYPRESS_RECORD_KEY | |
# in GitHub repo β Settings β Secrets β Actions | |
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | |
# pass GitHub token to detect new build vs re-run build | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Codecov | |
uses: codecov/codecov-action@v5 | |
with: | |
flags: E2E | |
directory: ./coverage | |
token: ${{ secrets.CODECOV_TOKEN }} |