<commit_before>version: 2

defaults: &defaults
  working_directory: ~/project/bootstrap-vue
  docker:
    - image: banian/node

jobs:
  setup:
    <<: *defaults
    steps:
      - checkout
      - restore_cache:
          key: yarn-{{ checksum "yarn.lock" }}
      - run:
          name: Install Dependencies
          command: NODE_ENV=dev yarn
      - save_cache:
          key: yarn-{{ checksum "yarn.lock" }}
          paths:
            - "node_modules"
      - persist_to_workspace:
          root: ~/project
          paths:
            - bootstrap-vue

  lint:
    <<: *defaults
    steps:
      - attach_workspace:
          at: ~/project
      - run:
          name: Lint
          command: yarn lint

  build:
    <<: *defaults
    steps:
      - attach_workspace:
          at: ~/project
      - run:
          name: Build
          command: yarn build

  test-latest:
    <<: *defaults
    steps:
      - attach_workspace:
          at: ~/project
      - run:
          name: Test
          command: yarn test --maxWorkers=2 --coverage && yarn codecov
    environment:
        - VUE_VERSION: "latest"
        - NODE_ENV: "test"
  docs:
    <<: *defaults
    steps:
      - attach_workspace:
          at: ~/project
      - run:
          name: Publish Docs
          command: yarn docs-publish

workflows:
  version: 2
  setup-and-parallel-test:
    jobs:
      - setup

      - lint:
          requires:
            - setup

      - build:
          requires:
            - setup

      - test-latest:
          requires:
            - setup

      - test-beta:
          requires:
            - setup

      - docs:
          requires:
            - setup<commit_msg>fix(ci): remove test-beta<commit_after>version: 2

defaults: &defaults
  working_directory: ~/project/bootstrap-vue
  docker:
    - image: banian/node

jobs:
  setup:
    <<: *defaults
    steps:
      - checkout
      - restore_cache:
          key: yarn-{{ checksum "yarn.lock" }}
      - run:
          name: Install Dependencies
          command: NODE_ENV=dev yarn
      - save_cache:
          key: yarn-{{ checksum "yarn.lock" }}
          paths:
            - "node_modules"
      - persist_to_workspace:
          root: ~/project
          paths:
            - bootstrap-vue

  lint:
    <<: *defaults
    steps:
      - attach_workspace:
          at: ~/project
      - run:
          name: Lint
          command: yarn lint

  build:
    <<: *defaults
    steps:
      - attach_workspace:
          at: ~/project
      - run:
          name: Build
          command: yarn build

  test-latest:
    <<: *defaults
    steps:
      - attach_workspace:
          at: ~/project
      - run:
          name: Test
          command: yarn test --maxWorkers=2 --coverage && yarn codecov
    environment:
        - VUE_VERSION: "latest"
        - NODE_ENV: "test"

  docs:
    <<: *defaults
    steps:
      - attach_workspace:
          at: ~/project
      - run:
          name: Publish Docs
          command: yarn docs-publish

workflows:
  version: 2
  setup-and-parallel-test:
    jobs:
      - setup

      - lint:
          requires:
            - setup

      - build:
          requires:
            - setup

      - test-latest:
          requires:
            - setup

      - docs:
          requires:
            - setup
{'fraction_non_alphanumeric': 0.10220078384082001, 'fraction_numerical': 0.0018088634308109737, 'mean_word_length': 1.2851239669421488, 'pattern_counts': {'":': 0, '<': 23, '<?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': '5859169', 'n_tokens_mistral': 1047, 'n_tokens_neox': 992, 'n_words': 232}