<commit_before>name: Tests

on:
  push:
    branches:
      - master
  pull_request:

jobs:
  test:
    name: Test and lint
    strategy:
      matrix:
        go-version: [1.x, 1.13.x, 1.12.x]
        platform: [ubuntu-latest, windows-latest]
    runs-on: ${{ matrix.platform }}

    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-go@v2
        with:
          go-version: 1.14

      # Caching go modules to speed up the run
      - uses: actions/cache@v1
        with:
          path: ~/go/pkg/mod
          key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
          restore-keys: |
            ${{ runner.os }}-go-

      - name: Run go fmt
        if: runner.os != 'Windows'
        run: diff -u <(echo -n) <(gofmt -d -s .)

      - name: Run go vet
        run: make vet

      - name: Run staticcheck
        run: make staticcheck

      - name: Run Unit tests.
        run: make test<commit_msg>Update testing github action workflow to actions/cache@v2<commit_after>name: Tests

on:
  push:
    branches:
      - master
  pull_request:

jobs:
  test:
    name: Test and lint
    strategy:
      matrix:
        go-version: [1.x, 1.13.x, 1.12.x]
        platform: [ubuntu-latest, windows-latest]
    runs-on: ${{ matrix.platform }}

    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-go@v2
        with:
          go-version: 1.14

      # Caching go modules to speed up the run
      - uses: actions/cache@v2
        with:
          path: ~/go/pkg/mod
          key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
          restore-keys: |
            ${{ runner.os }}-go-

      - name: Run go fmt
        if: runner.os != 'Windows'
        run: diff -u <(echo -n) <(gofmt -d -s .)

      - name: Run go vet
        run: make vet

      - name: Run staticcheck
        run: make staticcheck

      - name: Run Unit tests.
        run: make test
{'fraction_non_alphanumeric': 0.13431269674711438, 'fraction_numerical': 0.01416579223504722, 'mean_word_length': 1.591032608695652, 'pattern_counts': {'":': 0, '<': 7, '<?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': '1979378', 'n_tokens_mistral': 672, 'n_tokens_neox': 641, 'n_words': 179}