GithubHelp home page GithubHelp logo

nhatthm / gherkin-lint-action Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 9 KB

GitHub action for gherkin-lint

Home Page: https://github.com/marketplace/actions/run-gherkin-lint

License: MIT License

Dockerfile 10.80% Shell 47.82% Gherkin 41.38%
github action github-actions github-action gherkin gherkin-lint lint linter bdd test-integration cucumber continuous-integration

gherkin-lint-action's Introduction

gherkin-lint-action

A GitHub Action to parse feature files and run linting against the default rules, and the optional rules you specified in your .gherkin-lintrc file.

Usage

Add .github/workflows/lint.yml with the following contents:

name: lint
on:
  push:
    tags:
      - v*
    branches:
      - master
      - main
  pull_request:
jobs:
  lint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - name: gherkin-lint
        uses: nhatthm/gherkin-lint-action@v1
        with:
          # Optional: Version of gherkin-lint to use in the `npm install -g gherkin-lint` command. Default to `latest`.
          # version: latest

          # Optional: Comma separated list of feature files/glob patterns. Default to current working directory.
          feature_files: features/*

          # Optional: Use a custom configuration file instead of the default one.
          # config_file: .gherkin-lintrc

          # Optional: Output format. Possible values: json, stylish, xunit. Default to `stylish`.
          # format: stylish

          # Optional: Comma seperated list of files/glob patterns that the linter should ignore, overrides .gherkin-lintignore file
          # ignore:

          # Optional: Comma seperated list of additional rule directories
          # rule_dirs:

To specify some rule you can add a configuration file .gherkin-lintrc into your project folder. If you don't specify anything, the default ruleset is used.

See the list of available rules.

Donation

If this project help you reduce time to develop, you can give me a cup of coffee :)

Paypal donation

paypal

       or scan this

gherkin-lint-action's People

Contributors

dependabot[bot] avatar nhatthm avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

cherbst-2112

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.