Skip to content

🚧CI/CD workflow

🚧CI/CD workflow #10

Workflow file for this run

name: Run tests
env:
NEXT_PUBLIC_SOROSWAP_BACKEND_API_KEY: ${{secrets.NEXT_PUBLIC_SOROSWAP_BACKEND_API_KEY}}
NEXT_PUBLIC_SOROSWAP_BACKEND_URL: ${{secrets.NEXT_PUBLIC_SOROSWAP_BACKEND_URL}}
on: push
permissions:
contents: write
pull-requests: write
issues: read
packages: none
jobs:
run-tests:
env:
NEXT_PUBLIC_SOROSWAP_BACKEND_API_KEY: cualquiercosa
NEXT_PUBLIC_SOROSWAP_BACKEND_URL: https://backend.soroswap.finance
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up Node.js
uses: actions/[email protected]
with:
node-version: '20.10.0'
- name: Install dependencies
run: yarn install
- name: Install cypress
run: yarn cypress install
- name: Build app
run: yarn build
- name: Run app
run: yarn pm2 start next
- name: Run test
run: yarn cy:run