<commit_before>name: CI

on:
  push:
    branches: [master]
    paths:
      - "**.ts"
      - "**.tsx"
      - "tsconfig.json"
      - "ava.config.js"
      - "next.config.js"
      - "postcss.config.js"
      - "tailwind.config.js"
      - "package.json"
      - "pnpm-lock.yaml"
      - "docker-compose.test.yml"
      - ".github/workflows/ci.yml"
      - ".c8rc.json"
  pull_request:
    branches: [master]
    paths:
      - "**.ts"
      - "**.tsx"
      - "tsconfig.json"
      - "ava.config.js"
      - "next.config.js"
      - "postcss.config.js"
      - "tailwind.config.js"
      - "package.json"
      - "pnpm-lock.yaml"
      - "docker-compose.test.yml"
      - ".github/workflows/ci.yml"
      - ".c8rc.json"

jobs:
  test:
    name: Test
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node: [14.x, 16.x, 18.x]
    steps:
      - name: Checkout code
        uses: actions/checkout@v3

      - name: Setup node ${{matrix.node}}
        uses: actions/setup-node@v3
        with:
          node-version: ${{matrix.node}}

      - name: Setup pnpm
        id: pnpm-install
        uses: pnpm/action-setup@v2
        with:
          version: 7
          run_install: false

      - name: Get pnpm store directory
        id: pnpm-cache
        run: |
          echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"

      - uses: actions/cache@v3
        name: Setup pnpm cache
        with:
          path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
          key: ${{ runner.os }}-${{env.cache-name}}-${{matrix.node}}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
          restore-keys: |
            ${{ runner.os }}-${{env.cache-name}}-${{matrix.node}}-pnpm-store-

      - name: Install dependencies
        run: pnpm install

      - name: Setup docker compose
        run: docker compose -f docker-compose.test.yml up --wait

      - name: Run tests
        run: pnpm run ci

      - name: Teardown docker compose
        run: docker compose -f docker-compose.test.yml down

      - name: Upload codecov report
        uses: codecov/codecov-action@v3
        if: matrix.node == '16.x' && matrix.os == 'ubuntu-latest'<commit_msg>Upload code coverage from Node.js 18.x, not 16.x<commit_after>name: CI

on:
  push:
    branches: [master]
    paths:
      - "**.ts"
      - "**.tsx"
      - "tsconfig.json"
      - "ava.config.js"
      - "next.config.js"
      - "postcss.config.js"
      - "tailwind.config.js"
      - "package.json"
      - "pnpm-lock.yaml"
      - "docker-compose.test.yml"
      - ".github/workflows/ci.yml"
      - ".c8rc.json"
  pull_request:
    branches: [master]
    paths:
      - "**.ts"
      - "**.tsx"
      - "tsconfig.json"
      - "ava.config.js"
      - "next.config.js"
      - "postcss.config.js"
      - "tailwind.config.js"
      - "package.json"
      - "pnpm-lock.yaml"
      - "docker-compose.test.yml"
      - ".github/workflows/ci.yml"
      - ".c8rc.json"

jobs:
  test:
    name: Test
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node: [14.x, 16.x, 18.x]
    steps:
      - name: Checkout code
        uses: actions/checkout@v3

      - name: Setup Node.js v${{matrix.node}}
        uses: actions/setup-node@v3
        with:
          node-version: ${{matrix.node}}

      - name: Setup pnpm
        id: pnpm-install
        uses: pnpm/action-setup@v2
        with:
          version: 7
          run_install: false

      - name: Get pnpm store directory
        id: pnpm-cache
        run: |
          echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"

      - uses: actions/cache@v3
        name: Setup pnpm cache
        with:
          path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
          key: ${{ runner.os }}-${{env.cache-name}}-${{matrix.node}}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
          restore-keys: |
            ${{ runner.os }}-${{env.cache-name}}-${{matrix.node}}-pnpm-store-

      - name: Install dependencies
        run: pnpm install

      - name: Setup docker compose
        run: docker compose -f docker-compose.test.yml up --wait

      - name: Run tests
        run: pnpm run ci

      - name: Teardown docker compose
        run: docker compose -f docker-compose.test.yml down

      - name: Upload codecov report
        uses: codecov/codecov-action@v3
        if: matrix.node == '18.x' && matrix.os == 'ubuntu-latest'
{'fraction_non_alphanumeric': 0.15477547298837474, 'fraction_numerical': 0.008206063369044905, 'mean_word_length': 1.6986469864698648, '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': '1646682', 'n_tokens_mistral': 1620, 'n_tokens_neox': 1508, 'n_words': 302}