diff --git a/.github/workflows/cypress.js.yml b/.github/workflows/cypress.js.yml new file mode 100644 index 000000000..2b3c66cb8 --- /dev/null +++ b/.github/workflows/cypress.js.yml @@ -0,0 +1,20 @@ +name: End-to-end tests +on: push +jobs: + cypress-run: + runs-on: ubuntu-22.04 + steps: + - name: Checkout + uses: actions/checkout@v3 + # Install npm dependencies, cache them correctly + # and run all Cypress tests + - name: Start MongoDB + uses: supercharge/mongodb-github-action@1.8.0 + with: + mongodb-version: 6.0 + - name: Install dependencies + run: npm install + - name: Start server + run: npm run start:test & + - name: Cypress run + uses: cypress-io/github-action@v5