Skip to content

Commit

Permalink
Merge pull request #18 from ernilambar/fix/lint
Browse files Browse the repository at this point in the history
Fix yaml lint
  • Loading branch information
ernilambar authored Aug 16, 2024
2 parents 35cd64f + 6bc22ff commit e8923ab
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 405 deletions.
2 changes: 2 additions & 0 deletions .gherkin-lintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
"Feature": 0,
"Background": 2,
"Scenario": 2,
"Examples": 4,
"Step": 4,
"given": 4,
"example": 6,
"and": 4
}
],
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/lint-gherkin.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
name: Gherkin Linting

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

jobs:

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

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

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

0 comments on commit e8923ab

Please sign in to comment.