<commit_before>name: Test Pull Request
on:
  pull_request:
    branches:
      - main
jobs:
  build_and_test:
    name: Install packages, build, and test
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-node@v2
        with:
          node-version: '12'

      - name: Get yarn cache directory path
        id: yarn-cache-dir-path
        run: echo "::set-output name=dir::$(yarn cache dir)"

      - uses: actions/cache@v2
        id: yarn-cache
        with:
          path: |
            node_modules
            **/node_modules
            **/.eslintcache
            ${{ steps.yarn-cache-dir-path.outputs.dir }}
          key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}

      - name: Build
        run: |
          yarn --frozen-lockfile
          ./node_modules/.bin/ember build --output-path="test_build" --environment=test

      - name: Ember Testing
        env:
          COVERAGE: true
        run: ./node_modules/.bin/ember test --path=test_build  

      - name: Cypress Testing
        uses: cypress-io/github-action@v2
        with:
          start: ./node_modules/.bin/ember serve --path=test_build
          wait-on: 'http://localhost:4200'
          wait-on-timeout: 600
          quiet: true
          record: true
          parallel: true
          group: 'Tests'
          spec: |
            cypress/integration/client_admin/doi.test.ts
            cypress/integration/client_admin/info.test.ts
            cypress/integration/client_admin/prefixes.test.ts
            cypress/integration/client_admin/settings.test.ts
            cypress/integration/consortium_admin/contacts.test.ts
            cypress/integration/consortium_admin/info.test.ts
            cypress/integration/consortium_admin/settings.test.ts
            cypress/integration/organization_admin/contacts.test.ts
            cypress/integration/organization_admin/doi.test.ts
            cypress/integration/organization_admin/info.test.ts
            cypress/integration/organization_admin/prefixes.test.ts
            cypress/integration/organization_admin/repositories.test.ts
            cypress/integration/organization_admin/settings.test.ts
            cypress/integration/staff_admin/contacts.test.ts
            cypress/integration/staff_admin/info.test.ts
            cypress/integration/staff_admin/settings.test.ts
            cypress/integration/ui/consent.test.ts
            cypress/integration/ui/login.test.ts
            cypress/integration/anonymous/admin.test.ts
            cypress/integration/anonymous/anonymous.test.ts
            cypress/integration/anonymous/doi.test.ts
            cypress/integration/anonymous/provider.test.ts
            cypress/integration/anonymous/repository.test.ts
        env:
          CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          CLIENT_ADMIN_USERNAME: ${{ secrets.CLIENT_ADMIN_USERNAME }}
          CLIENT_ADMIN_PASSWORD: ${{ secrets.CLIENT_ADMIN_PASSWORD }}
          CONSORTIUM_ADMIN_USERNAME: ${{ secrets.CONSORTIUM_ADMIN_USERNAME }}
          CONSORTIUM_ADMIN_PASSWORD: ${{ secrets.CONSORTIUM_ADMIN_PASSWORD }}
          ORGANIZATION_ADMIN_USERNAME: ${{ secrets.ORGANIZATION_ADMIN_USERNAME }}
          ORGANIZATION_ADMIN_PASSWORD: ${{ secrets.ORGANIZATION_ADMIN_PASSWORD }}
          STAFF_ADMIN_USERNAME: ${{ secrets.STAFF_ADMIN_USERNAME }}
          STAFF_ADMIN_PASSWORD: ${{ secrets.STAFF_ADMIN_PASSWORD }}<commit_msg>Try to fix Cypress run<commit_after>name: Test Pull Request
on:
  pull_request:
    branches:
      - main
jobs:
  build_and_test:
    name: Install packages, build, and test
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-node@v2
        with:
          node-version: '12'

      - name: Get yarn cache directory path
        id: yarn-cache-dir-path
        run: echo "::set-output name=dir::$(yarn cache dir)"

      - uses: actions/cache@v2
        id: yarn-cache
        with:
          path: |
            node_modules
            **/node_modules
            **/.eslintcache
            ${{ steps.yarn-cache-dir-path.outputs.dir }}
            ~/.cache/Cypress
          key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}

      - name: Build
        run: |
          yarn --frozen-lockfile
          ./node_modules/.bin/ember build --output-path="test_build" --environment=test

      - name: Ember Testing
        env:
          COVERAGE: true
        run: ./node_modules/.bin/ember test --path=test_build  

      - name: Cypress Testing
        uses: cypress-io/github-action@v2
        with:
          install: false
          start: ./node_modules/.bin/ember serve --path=test_build
          wait-on: 'http://localhost:4200'
          wait-on-timeout: 600
          # quiet: true
          record: true
          parallel: false
          group: 'Tests'
          spec: |
            cypress/integration/client_admin/doi.test.ts
            cypress/integration/client_admin/info.test.ts
            cypress/integration/client_admin/prefixes.test.ts
            cypress/integration/client_admin/settings.test.ts
            cypress/integration/consortium_admin/contacts.test.ts
            cypress/integration/consortium_admin/info.test.ts
            cypress/integration/consortium_admin/settings.test.ts
            cypress/integration/organization_admin/contacts.test.ts
            cypress/integration/organization_admin/doi.test.ts
            cypress/integration/organization_admin/info.test.ts
            cypress/integration/organization_admin/prefixes.test.ts
            cypress/integration/organization_admin/repositories.test.ts
            cypress/integration/organization_admin/settings.test.ts
            cypress/integration/staff_admin/contacts.test.ts
            cypress/integration/staff_admin/info.test.ts
            cypress/integration/staff_admin/settings.test.ts
            cypress/integration/ui/consent.test.ts
            cypress/integration/ui/login.test.ts
            cypress/integration/anonymous/admin.test.ts
            cypress/integration/anonymous/anonymous.test.ts
            cypress/integration/anonymous/doi.test.ts
            cypress/integration/anonymous/provider.test.ts
            cypress/integration/anonymous/repository.test.ts
        env:
          DEBUG: '@cypress/github-action'
          CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          CLIENT_ADMIN_USERNAME: ${{ secrets.CLIENT_ADMIN_USERNAME }}
          CLIENT_ADMIN_PASSWORD: ${{ secrets.CLIENT_ADMIN_PASSWORD }}
          CONSORTIUM_ADMIN_USERNAME: ${{ secrets.CONSORTIUM_ADMIN_USERNAME }}
          CONSORTIUM_ADMIN_PASSWORD: ${{ secrets.CONSORTIUM_ADMIN_PASSWORD }}
          ORGANIZATION_ADMIN_USERNAME: ${{ secrets.ORGANIZATION_ADMIN_USERNAME }}
          ORGANIZATION_ADMIN_PASSWORD: ${{ secrets.ORGANIZATION_ADMIN_PASSWORD }}
          STAFF_ADMIN_USERNAME: ${{ secrets.STAFF_ADMIN_USERNAME }}
          STAFF_ADMIN_PASSWORD: ${{ secrets.STAFF_ADMIN_PASSWORD }}
{'fraction_non_alphanumeric': 0.1008613503751042, 'fraction_numerical': 0.003612114476243401, 'mean_word_length': 2.176963812886143, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5981543', 'n_tokens_mistral': 2267, 'n_tokens_neox': 2124, 'n_words': 295}