Skip to content

👷‍♂️Add env vars to ci workflow #7

👷‍♂️Add env vars to ci workflow

👷‍♂️Add env vars to ci workflow #7

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:
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 ${{secrets.GITHUB_TOKEN}}
- name: Run test
run: yarn cy:run