gregbell/active_admin

View on GitHub
.github/workflows/gherkin-lint.yml

Summary

Maintainability
Test Coverage
name: Gherkin Lint

on:
  pull_request:

env:
  NODE_VERSION: 20.x

jobs:
  gherkin_lint:
    name: Run gherkin-lint
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: tj-actions/changed-files@v44
        id: changed-files
        with:
          files: |
            **.feature
            .gherkin-lintrc
            package*.json
            yarn.lock
            .github/workflows/gherkin-lint.yml
      - uses: actions/setup-node@v4
        if: steps.changed-files.outputs.any_changed == 'true'
        with:
          node-version: ${{ env.NODE_VERSION }}
          cache: yarn
      - run: bin/yarn install --frozen-lockfile --immutable
        if: steps.changed-files.outputs.any_changed == 'true'
      - run: bin/yarn gherkin-lint
        if: steps.changed-files.outputs.any_changed == 'true'