<commit_before>name: Test save/restore Gradle state with direct execution

on:
  pull_request:
    types: [assigned, review_requested]
  push:
    paths:
      - '.github/**'
      - 'dist/**'
  workflow_dispatch:

concurrency:
  group: ${{ github.workflow }}

env:
  GRADLE_BUILD_ACTION_CACHE_KEY_PREFIX: ${{github.workflow}}#${{github.run_number}}:${{github.run_attempt}}-

jobs:
  seed-build:
    strategy:
      matrix:
        os: [ubuntu-latest, windows-latest, macos-latest]
    runs-on: ${{ matrix.os }}
    steps:
    - name: Checkout sources
      uses: actions/checkout@v2
    - name: Exucute Gradle build
      uses: ./
      with:
        build-root-directory: .github/workflow-samples/groovy-dsl
        arguments: test

  # Test that the gradle-user-home is restored
  verify-build:
    needs: seed-build
    strategy:
      matrix:
        os: [ubuntu-latest, windows-latest, macos-latest]
    runs-on: ${{ matrix.os }}
    steps:
    - name: Checkout sources
      uses: actions/checkout@v2
    - name: Execute Gradle build
      uses: ./
      with:
        cache-read-only: true
        build-root-directory: .github/workflow-samples/groovy-dsl
        arguments: test --offline -DverifyCachedBuild=true
<commit_msg>Fix typo in worklow step<commit_after>name: Test save/restore Gradle state with direct execution

on:
  pull_request:
    types: [assigned, review_requested]
  push:
    paths:
      - '.github/**'
      - 'dist/**'
  workflow_dispatch:

concurrency:
  group: ${{ github.workflow }}

env:
  GRADLE_BUILD_ACTION_CACHE_KEY_PREFIX: ${{github.workflow}}#${{github.run_number}}:${{github.run_attempt}}-

jobs:
  seed-build:
    strategy:
      matrix:
        os: [ubuntu-latest, windows-latest, macos-latest]
    runs-on: ${{ matrix.os }}
    steps:
    - name: Checkout sources
      uses: actions/checkout@v2
    - name: Execute Gradle build
      uses: ./
      with:
        build-root-directory: .github/workflow-samples/groovy-dsl
        arguments: test

  # Test that the gradle-user-home is restored
  verify-build:
    needs: seed-build
    strategy:
      matrix:
        os: [ubuntu-latest, windows-latest, macos-latest]
    runs-on: ${{ matrix.os }}
    steps:
    - name: Checkout sources
      uses: actions/checkout@v2
    - name: Execute Gradle build
      uses: ./
      with:
        cache-read-only: true
        build-root-directory: .github/workflow-samples/groovy-dsl
        arguments: test --offline -DverifyCachedBuild=true

{'fraction_non_alphanumeric': 0.12333736396614269, 'fraction_numerical': 0.0016122531237404273, 'mean_word_length': 2.5609756097560976, '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': '368516', 'n_tokens_mistral': 836, 'n_tokens_neox': 811, 'n_words': 178}