Skip to content

Testing workflow

Testing workflow #1

Workflow file for this run

name: Node.js CI with MongoDB and cypress
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
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/mongodb-github-action@1.10.0
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