huridocs/uwazi

View on GitHub
.github/workflows/ci_cypress_component.yml

Summary

Maintainability
Test Coverage
name: Component testing

on:
  push:
    branches:
      - development
  pull_request:

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

jobs:
  cypress-run:
    runs-on: ubuntu-20.04
    steps:
      - name: Checkout
        uses: actions/checkout@v4
      # Install NPM dependencies, cache them correctly
      # and run all Cypress tests
      - name: Setup Nodejs
        uses: actions/setup-node@v4
        with:
          node-version-file: '.nvmrc'
      - name: Cypress run
        uses: cypress-io/github-action@v5
        with:
          browser: chrome
          component: true