File tree Expand file tree Collapse file tree 2 files changed +46
-0
lines changed
Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ # ********************************************************************************
2+ # Copyright (c) 2025 Contributors to the Eclipse Foundation
3+ #
4+ # See the NOTICE file(s) distributed with this work for additional
5+ # information regarding copyright ownership.
6+ #
7+ # This program and the accompanying materials are made available under the
8+ # terms of the Apache License Version 2.0 which is available at
9+ # https://www.apache.org/licenses/LICENSE-2.0
10+ #
11+ # SPDX-License-Identifier: Apache-2.0
12+ # *******************************************************************************/
13+
14+ name : Lint Gherkin Features
15+
16+ on :
17+ workflow_dispatch :
18+ pull_request :
19+ paths :
20+ - ' **/*.feature'
21+
22+ jobs :
23+ lint-gherkin :
24+ runs-on : ubuntu-latest
25+ steps :
26+ - name : Checkout repository
27+ uses : actions/checkout@v4
28+
29+ - name : install gherklin
30+ run : |
31+ npm install -D gherklin
32+ npm install -D tsx
33+
34+ - name : lint feature files
35+ run : |
36+ npx tsx ./node_modules/.bin/gherklin
Original file line number Diff line number Diff line change 1+ export default {
2+ featureDirectory : "." ,
3+ customRulesDirectory : "./custom-rules" ,
4+ rules : {
5+ "allowed-tags" : "off" ,
6+ "no-trailing-spaces" : "error" ,
7+ "new-line-at-eof" : "error" ,
8+ } ,
9+ fix : false ,
10+ }
You can’t perform that action at this time.
0 commit comments