<commit_before>name: CI

on:
  pull_request_target:
    types: [synchronize, opened, reopened, labeled, unlabeled]

jobs:
  syntax:
    name: syntax
    runs-on: macos-latest
    steps:
      - uses: actions/checkout@main
      - name: Check out Pull Request
        uses: ./.github/actions/checkout_cask_pr
        id: checkout_cask_pr
      - name: Cache Homebrew Gems
        uses: actions/cache@v2
        with:
          path: ${{ steps.checkout_cask_pr.outputs.homebrew_gems_cache_dir }}
          key: homebrew-gems-cache-${{ steps.checkout_cask_pr.outputs.homebrew_gems_cache_id }}
          restore-keys: homebrew-gems-cache-
      - name: Install Homebrew Gems
        run: brew install-bundler-gems
      - name: Uninstall third-party taps
        run: brew untap adoptopenjdk/openjdk
      - name: Run brew cask style
        run: brew cask style
      - name: Run brew cask audit
        run: brew cask audit
        if: always()

  generate-matrix:
    outputs:
      matrix: ${{ steps.generate-matrix.outputs.matrix }}
    runs-on: macos-latest
    if: github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'syntax-only')
    steps:
      - uses: actions/checkout@main
      - name: Check out Pull Request
        uses: ./.github/actions/checkout_cask_pr
        id: checkout_cask_pr
      - name: Generate CI matrix
        id: generate-matrix
        run: brew ruby "$(brew --repository homebrew/cask)/cmd/lib/generate-matrix.rb"
        working-directory: ${{ steps.checkout_cask_pr.outputs.tap_path }}

  test:
    name: test (${{ matrix.name }})
    needs: generate-matrix
    runs-on: macos-latest
    strategy:
      matrix: ${{ fromJson(needs.generate-matrix.outputs.matrix) }}
    steps:
      - uses: actions/checkout@main<commit_msg>ci.yml: update to match main repo<commit_after>name: CI

on:
  pull_request_target:
    types: [synchronize, opened, reopened, labeled, unlabeled]

jobs:
  syntax:
    name: syntax
    runs-on: macos-latest
    steps:
      - uses: actions/checkout@main
      - name: Check out Pull Request
        uses: ./.github/actions/checkout_cask_pr
        id: checkout_cask_pr
      - name: Cache Homebrew Gems
        uses: actions/cache@v2
        with:
          path: ${{ steps.checkout_cask_pr.outputs.homebrew_gems_cache_dir }}
          key: homebrew-gems-cache-${{ steps.checkout_cask_pr.outputs.homebrew_gems_cache_id }}
          restore-keys: homebrew-gems-cache-
      - name: Install Homebrew Gems
        run: brew install-bundler-gems
      - name: Uninstall third-party taps
        run: brew untap adoptopenjdk/openjdk
      - name: Run brew cask style
        run: brew cask style
      - name: Run brew cask audit
        run: brew cask audit
        if: always()

  generate-matrix:
    outputs:
      matrix: ${{ steps.generate-matrix.outputs.matrix }}
    runs-on: macos-latest
    if: contains(['pull_request', 'pull_request_target'], github.event_name) && !contains(github.event.pull_request.labels.*.name, 'syntax-only')
    steps:
      - uses: actions/checkout@main
      - name: Check out Pull Request
        uses: ./.github/actions/checkout_cask_pr
        id: checkout_cask_pr
      - name: Generate CI matrix
        id: generate-matrix
        run: brew ruby "$(brew --repository homebrew/cask)/cmd/lib/generate-matrix.rb"
        working-directory: ${{ steps.checkout_cask_pr.outputs.tap_path }}

  test:
    name: test (${{ matrix.name }})
    needs: generate-matrix
    runs-on: macos-latest
    strategy:
      matrix: ${{ fromJson(needs.generate-matrix.outputs.matrix) }}
    steps:
      - uses: actions/checkout@main
{'fraction_non_alphanumeric': 0.10979961570134504, 'fraction_numerical': 0.0005489980785067252, 'mean_word_length': 2.5207729468599034, 'pattern_counts': {'":': 0, '<': 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': '3708460', 'n_tokens_mistral': 1188, 'n_tokens_neox': 1142, 'n_words': 261}