<commit_before>name: CI

on: [push, pull_request]

jobs:
  xcode:
    runs-on: macos-latest
    env:
      DEVELOPER_DIR: /Applications/Xcode_13.2.1.app/Contents/Developer

    steps:
    - uses: actions/checkout@v2

    - name: Build QuranEngine.xcworkspace
      run: xcrun xcodebuild build -scheme QuranEngine -sdk "iphonesimulator" | xcpretty

    - name: Run tests
      run: xcrun xcodebuild test -scheme QuranEngine -sdk "iphonesimulator" -destination "name=iPhone 11 Pro,OS=15.2" | xcpretty

    - uses: sersoft-gmbh/swift-coverage-action@v2
      id: coverage-files

    - uses: codecov/codecov-action@v2
      with:
        files: ${{join(fromJSON(steps.coverage-files.outputs.files), ',')}}<commit_msg>Fail CI if any xcodebuild commands fail<commit_after>name: CI

on: [push, pull_request]

jobs:
  xcode:
    runs-on: macos-latest
    env:
      DEVELOPER_DIR: /Applications/Xcode_13.2.1.app/Contents/Developer

    steps:
    - uses: actions/checkout@v2

    - name: Build QuranEngine.xcworkspace
      run: set -o pipefail && xcrun xcodebuild build -scheme QuranEngine -sdk "iphonesimulator" | xcpretty

    - name: Run tests
      run: set -o pipefail && xcrun xcodebuild test -scheme QuranEngine -sdk "iphonesimulator" -destination "name=iPhone 11 Pro,OS=15.2" | xcpretty

    - uses: sersoft-gmbh/swift-coverage-action@v2
      id: coverage-files

    - uses: codecov/codecov-action@v2
      with:
        files: ${{join(fromJSON(steps.coverage-files.outputs.files), ',')}}
{'fraction_non_alphanumeric': 0.11677852348993288, 'fraction_numerical': 0.016107382550335572, 'mean_word_length': 3.1532033426183843, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6403098', 'n_tokens_mistral': 566, 'n_tokens_neox': 514, 'n_words': 116}