Skip to content

Deployment test

Deployment test #1

Workflow file for this run

name: Build and Test
on:
push:
branches: ['main']
pull_request:
branches: ['main']
jobs:
build:
runs-on: ubuntu-latest
if: |
github.event_name == 'pull_request' && github.event.action == 'opened' ||
github.event_name == 'push' && github.event.ref == 'refs/heads/main' &&
github.event.before == github.sha
strategy:
matrix:
node-version: [18.x]
mongodb-version: ['6.0']
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: ${{ matrix.mongodb-version }}
- name: Cypress run
uses: cypress-io/github-action@v6
with:
build: npm run build --if-present
start: npm run start:test
wait-on: http://localhost:3030