Skip to content

Commit

Permalink
Add Gherkin lint action
Browse files Browse the repository at this point in the history
  • Loading branch information
ernilambar committed Aug 14, 2024
1 parent ed4925a commit d2a2235
Showing 1 changed file with 32 additions and 0 deletions.
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

0 comments on commit d2a2235

Please # to comment.