File tree 1 file changed +32
-0
lines changed
1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Gherkin Linting
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ pull_request :
6
+ branches :
7
+ - main
8
+ - master
9
+
10
+ jobs :
11
+ gherkin-lint :
12
+ name : Lint Gherkin Feature files
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - name : Check out source code
16
+ uses : actions/checkout@v4
17
+
18
+ - name : Setup node
19
+ uses : actions/setup-node@v4
20
+
21
+ - name : Check existence of .gherkin-lintrc file
22
+ id : check_gherkin_lintrc_file
23
+ uses : andstor/file-existence-action@v3
24
+ with :
25
+ files : " .gherkin-lintrc"
26
+
27
+ - name : Download lint rules
28
+ if : steps.check_gherkin_lintrc_file.outputs.files_exists == 'false'
29
+ run : curl https://gist.githubusercontent.com/ernilambar/a7a30af6f6f6bd5be238d5499993233a/raw/3b8f54e2d36be33706947ce6ce44c5a888cee464/gherkin-lintrc.json -o .gherkin-lintrc
30
+
31
+ - name : Run lint
32
+ run : npx --yes gherkin-lint
You can’t perform that action at this time.
0 commit comments