<commit_before># This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on:
  push:
    branches: [ devel ]
  pull_request:
    branches: [ devel ]

jobs:
  build:

    runs-on: ubuntu-latest

    strategy:
      matrix:
        node-version: [12.x, 14.x]

    steps:
    - uses: actions/checkout@v2
    - name: Use Node.js ${{ matrix.node-version }}
      uses: actions/setup-node@v1
      with:
        node-version: ${{ matrix.node-version }}

    - name: Install dependencies
      run: npm ci

    - name: Lint the code
      run: npm run lint

    - name: Run tests (with node-sass support)
      run: |
        npm install node-sass@4.14.1
        npm test

    - name: Run bin/analyze-css.js for CSS file
      run: /bin/analyze-css.js --file examples/ti.mobile.css  -p | grep metrics -B2

    - name: Run bin/analyze-css.js for SCSS file
      run: ./bin/analyze-css.js --file examples/base.scss  -p | grep offenders -A3<commit_msg>Add a missing dot<commit_after># This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on:
  push:
    branches: [ devel ]
  pull_request:
    branches: [ devel ]

jobs:
  build:

    runs-on: ubuntu-latest

    strategy:
      matrix:
        node-version: [12.x, 14.x]

    steps:
    - uses: actions/checkout@v2
    - name: Use Node.js ${{ matrix.node-version }}
      uses: actions/setup-node@v1
      with:
        node-version: ${{ matrix.node-version }}

    - name: Install dependencies
      run: npm ci

    - name: Lint the code
      run: npm run lint

    - name: Run tests (with node-sass support)
      run: |
        npm install node-sass@4.14.1
        npm test

    - name: Run bin/analyze-css.js for CSS file
      run: ./bin/analyze-css.js --file examples/ti.mobile.css  -p | grep metrics -B2

    - name: Run bin/analyze-css.js for SCSS file
      run: ./bin/analyze-css.js --file examples/base.scss  -p | grep offenders -A3
{'fraction_non_alphanumeric': 0.11158983196897888, 'fraction_numerical': 0.01034037052994399, 'mean_word_length': 2.33142037302726, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '3073815', 'n_tokens_mistral': 798, 'n_tokens_neox': 753, 'n_words': 228}