Skip to content

separated api and e2e tests to run on separate containers #4

separated api and e2e tests to run on separate containers

separated api and e2e tests to run on separate containers #4

Workflow file for this run

name: CI
on:
push:
branches:
- feature/integrate-github-actions
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- test-type: 'api'
- test-type: 'e2e'
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '21'
- name: Install dependencies
run: npm install
- name: Run API tests
if: ${{ matrix.test-type == 'api' }}
run: npx cypress run --spec "cypress/integration/api/**/*"
- name: Run e2e tests
if: ${{ matrix.test-type == 'e2e' }}
run: npx cypress run --spec "cypress/integration/e2e/**/*"