Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add Gherkin lint action #268

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/lint-gherkin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Gherkin Linting

on:
workflow_dispatch:
pull_request:
branches:
- main
- master

jobs:
gherkin-lint:
name: Lint Gherkin Feature files
runs-on: ubuntu-latest
steps:
- name: Check out source code
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v4

- name: Check existence of .gherkin-lintrc file
id: check_gherkin_lintrc_file
uses: andstor/file-existence-action@v3
with:
files: ".gherkin-lintrc"

- name: Download lint rules
if: steps.check_gherkin_lintrc_file.outputs.files_exists == 'false'
run: curl https://gist.githubusercontent.com/ernilambar/a7a30af6f6f6bd5be238d5499993233a/raw/3b8f54e2d36be33706947ce6ce44c5a888cee464/gherkin-lintrc.json -o .gherkin-lintrc

- name: Run lint
run: npx --yes gherkin-lint
Loading