Anapher/Strive

View on GitHub
.github/workflows/e2e-tests.yml

Summary

Maintainability
Test Coverage
name: Cypress E2E tests
on:
  push:
    paths:
      - src/**
      - .github/workflows/e2e-tests.yml

jobs:
  test:
    runs-on: ubuntu-latest
    defaults:
      run:
        working-directory: src/
    steps:
      - uses: actions/checkout@v2
      - name: Make compose.sh executable
        run: chmod +x ./compose.sh
      - name: Build and run docker compose
        run: ./compose.sh -f ./docker-compose.e2e.yml up --build --exit-code-from e2e
        env:
          CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
          COMMIT_INFO_SHA: ${{ env.GITHUB_SHA }}
          COMMIT_INFO_BRANCH: ${{ env.GITHUB_REF }}
          CYPRESS_COMMAND: "--record"