Skip to content

update about content #23

update about content

update about content #23

Workflow file for this run

name: E2E Tests
on:
push:
branches:
- "**"
env:
STRAVA_ADMIN_ID: ${{ secrets.STRAVA_ADMIN_ID }}
STRAVA_CLIENT_SECRET: ${{ secrets.STRAVA_CLIENT_SECRET }}
MONGODB_URI: ${{ secrets.MONGODB_URI }}
SESSION_SECRET: ${{ secrets.SESSION_SECRET }}
jobs:
e2e:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
working-directory: ./web
- name: Build project
run: npm run build
working-directory: ./web
- name: Start server
run: npm start &
working-directory: ./web
env:
CI: true
- name: Wait for Next.js to start
run: npx wait-on http://localhost:3000
working-directory: ./web
- name: Run Cypress tests
run: npm run cy:run
working-directory: ./web
- name: Stop Next.js server
run: pkill -f 'next start'