<commit_before>name: Run unit tests
on:
  push:
    branches:
      - master
  pull_request:
    paths-ignore:
      - '**.md'
      - '.github/**'
    branches:
      - master
    types: [opened, edited, synchronize]
jobs:
  run-unit-tests-amd64:
    name: Run unit tests on amd64 for ${{ matrix.os }} - ${{ matrix.compiler }} - ${{ matrix.flb_option }}
    runs-on: ${{ matrix.os }}
    strategy:
      max-parallel: 48
      fail-fast: false
      matrix:
        flb_option: [ "-DFLB_JEMALLOC=On", "-DFLB_JEMALLOC=Off", "-DFLB_SMALL=On", "-DSANITIZE_ADDRESS=On", "-DSANITIZE_UNDEFINED=On", "-DFLB_COVERAGE=On"]
        os: [ubuntu-18.04, macos-latest]
        compiler: [ gcc, clang ]
        exclude:
          - os: macos-latest
            flb_option: "-DFLB_JEMALLOC=On"
          - os: macos-latest
            flb_option: "-DFLB_SMALL=On"
          - os: macos-latest
            flb_option: "-DSANITIZE_ADDRESS=On"
          - os: macos-latest
            flb_option: "-DSANITIZE_UNDEFINED=On"
          - os: macos-latest
            flb_option: "-DFLB_COVERAGE=On"
          - os: macos-latest
            flb_option: "-DFLB_JEMALLOC=Off"
            compiler: clang
          - os: ubuntu-18.04
            flb_option: "-DFLB_COVERAGE=On"
            compiler: clang
    steps:
      - name: Setup environment ubuntu-18.04
        if: matrix.os == 'ubuntu-18.04'
        run: |
          sudo apt update
          sudo apt install -yyq gcc-7 g++-7 clang-6.0 libsystemd-dev gcovr
          sudo ln -s /usr/bin/llvm-symbolizer-6.0 /usr/bin/llvm-symbolizer || true

      - uses: actions/checkout@v2
      - uses: actions/checkout@v2
        with:
          repository: calyptia/fluent-bit-ci
          path: ci

      - name: Run ci/s/run-unit-tests.sh on ${{ matrix.os }} with ${{ matrix.compiler }} - ${{ matrix.flb_option }}
        if: matrix.os == 'ubuntu-18.04'
        run: |
          echo "CC = $CC, CXX = $CXX, FLB_OPT = $FLB_OPT"
          sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 90
          sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 90
          sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-6.0 90
          sudo usermod -a -G systemd-journal $(id -un)
          sudo -E su -p $(id -un) -c "PATH=$PATH ci/scripts/run-unit-tests.sh"
        env:
          CC: ${{ matrix.compiler }}
          CXX: ${{ matrix.compiler }}
          FLB_OPT: ${{ matrix.flb_option }}

      - name: Run ci/s/run-unit-tests.sh on ${{ matrix.os }} with ${{ matrix.compiler }} - ${{ matrix.flb_option }}
        if: matrix.os == 'macos-latest'
        run: |
          echo "CC = $CC, CXX = $CXX, FLB_OPT = $FLB_OPT"
          brew update
          brew install bison flex || true
          ci/scripts/run-unit-tests.sh || true
        env:
          CC: gcc
          CXX: g++
          FLB_OPT: ${{ matrix.flb_option }}
<commit_msg>workflows: ignore .github directories from tests<commit_after>name: Run unit tests
on:
  push:
    branches:
      - master
  pull_request:
    paths-ignore:
      - '.github/**'
    branches:
      - master
    types: [opened, edited, synchronize]
jobs:
  run-unit-tests-amd64:
    name: Run unit tests on amd64 for ${{ matrix.os }} - ${{ matrix.compiler }} - ${{ matrix.flb_option }}
    runs-on: ${{ matrix.os }}
    strategy:
      max-parallel: 48
      fail-fast: false
      matrix:
        flb_option: [ "-DFLB_JEMALLOC=On", "-DFLB_JEMALLOC=Off", "-DFLB_SMALL=On", "-DSANITIZE_ADDRESS=On", "-DSANITIZE_UNDEFINED=On", "-DFLB_COVERAGE=On"]
        os: [ubuntu-18.04, macos-latest]
        compiler: [ gcc, clang ]
        exclude:
          - os: macos-latest
            flb_option: "-DFLB_JEMALLOC=On"
          - os: macos-latest
            flb_option: "-DFLB_SMALL=On"
          - os: macos-latest
            flb_option: "-DSANITIZE_ADDRESS=On"
          - os: macos-latest
            flb_option: "-DSANITIZE_UNDEFINED=On"
          - os: macos-latest
            flb_option: "-DFLB_COVERAGE=On"
          - os: macos-latest
            flb_option: "-DFLB_JEMALLOC=Off"
            compiler: clang
          - os: ubuntu-18.04
            flb_option: "-DFLB_COVERAGE=On"
            compiler: clang
    steps:
      - name: Setup environment ubuntu-18.04
        if: matrix.os == 'ubuntu-18.04'
        run: |
          sudo apt update
          sudo apt install -yyq gcc-7 g++-7 clang-6.0 libsystemd-dev gcovr
          sudo ln -s /usr/bin/llvm-symbolizer-6.0 /usr/bin/llvm-symbolizer || true

      - uses: actions/checkout@v2
      - uses: actions/checkout@v2
        with:
          repository: calyptia/fluent-bit-ci
          path: ci

      - name: Run ci/s/run-unit-tests.sh on ${{ matrix.os }} with ${{ matrix.compiler }} - ${{ matrix.flb_option }}
        if: matrix.os == 'ubuntu-18.04'
        run: |
          echo "CC = $CC, CXX = $CXX, FLB_OPT = $FLB_OPT"
          sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 90
          sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 90
          sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-6.0 90
          sudo usermod -a -G systemd-journal $(id -un)
          sudo -E su -p $(id -un) -c "PATH=$PATH ci/scripts/run-unit-tests.sh"
        env:
          CC: ${{ matrix.compiler }}
          CXX: ${{ matrix.compiler }}
          FLB_OPT: ${{ matrix.flb_option }}

      - name: Run ci/s/run-unit-tests.sh on ${{ matrix.os }} with ${{ matrix.compiler }} - ${{ matrix.flb_option }}
        if: matrix.os == 'macos-latest'
        run: |
          echo "CC = $CC, CXX = $CXX, FLB_OPT = $FLB_OPT"
          brew update
          brew install bison flex || true
          ci/scripts/run-unit-tests.sh || true
        env:
          CC: gcc
          CXX: g++
          FLB_OPT: ${{ matrix.flb_option }}

{'fraction_non_alphanumeric': 0.14229519411664102, 'fraction_numerical': 0.015050453223875491, 'mean_word_length': 1.7940754897276636, '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': '2248587', 'n_tokens_mistral': 2152, 'n_tokens_neox': 2012, 'n_words': 440}