License check improvements #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Gherkin Linting | |
on: | |
push: | |
branches: | |
- trunk | |
- 'release/**' | |
# Only run if feature files are changed. | |
paths: | |
- '.github/workflows/gherkin-lint.yml' | |
- 'package-lock.json' | |
- '**.feature' | |
pull_request: | |
branches: | |
- trunk | |
- 'release/**' | |
- 'feature/**' | |
# Only run if feature files are changed. | |
paths: | |
- '.github/workflows/gherkin-lint.yml' | |
- 'package-lock.json' | |
- '**.feature' | |
types: | |
- opened | |
- reopened | |
- synchronize | |
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 | |
with: | |
node-version-file: '.nvmrc' | |
cache: npm | |
- name: Install dependencies | |
run: npm ci | |
- name: Gherkin lint | |
run: npm run lint-gherkin |