<commit_before>name: CI
on: [push, pull_request]

jobs:

  package-haxelib:
    runs-on: macos-latest
    steps:

      - uses: actions/checkout@v2

      - uses: actions/upload-artifact@v2
        with:
          name: actuate-haxelib
          path: |
            ./
            !test/
            !haxe-*-*/
            !neko-*-*/
            !.git/
          if-no-files-found: error

  docs:
    runs-on: macos-latest
    steps:

      - uses: actions/checkout@v2

      - uses: krdlab/setup-haxe@v1
        with:
          haxe-version: 4.0.5

      - name: Set HAXEPATH
        run: |
          echo "HAXEPATH=$HAXE_STD_PATH/.." >> $GITHUB_ENV

      - name: Install Haxe dependencies
        run: |
          haxelib install dox --quiet
          haxelib dev actuate $GITHUB_WORKSPACE

      - name: Build docs
        working-directory: scripts
        run: |
          haxe docs.hxml

      - uses: actions/upload-artifact@v2
        with:
          name: actuate-docs
          path: docs<commit_msg>Github Actions: exclude some files from haxelib<commit_after>name: CI
on: [push, pull_request]

jobs:

  package-haxelib:
    runs-on: macos-latest
    steps:

      - uses: actions/checkout@v2

      - uses: actions/upload-artifact@v2
        with:
          name: actuate-haxelib
          path: |
            ./
            !test/
            !scripts/
            !lib/
            !lib-esm/
            !haxe-*-*/
            !neko-*-*/
            !.git/
            !webpack.*
            !package.json
          if-no-files-found: error

  docs:
    runs-on: macos-latest
    steps:

      - uses: actions/checkout@v2

      - uses: krdlab/setup-haxe@v1
        with:
          haxe-version: 4.0.5

      - name: Set HAXEPATH
        run: |
          echo "HAXEPATH=$HAXE_STD_PATH/.." >> $GITHUB_ENV

      - name: Install Haxe dependencies
        run: |
          haxelib install dox --quiet
          haxelib dev actuate $GITHUB_WORKSPACE

      - name: Build docs
        working-directory: scripts
        run: |
          haxe docs.hxml

      - uses: actions/upload-artifact@v2
        with:
          name: actuate-docs
          path: docs
{'fraction_non_alphanumeric': 0.10567604983848639, 'fraction_numerical': 0.007383479464697739, 'mean_word_length': 1.3362068965517242, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '5800115', 'n_tokens_mistral': 764, 'n_tokens_neox': 714, 'n_words': 150}