README.md in danger-textlint-2.0.1 vs README.md in danger-textlint-2.0.2

- old
+ new

@@ -39,9 +39,39 @@ #### Methods `lint` - Execute textlint and send comment +## Usage(Github Actions) +Puts this code into your .github/workflows/ + +```yaml +name: "textlint" +on: + pull_request: + +jobs: + textlint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Setup node version + uses: actions/setup-node@v2 + with: + node-version: '14' + cache: 'npm' + - run: npm ci + + - uses: ruby/setup-ruby@v1 + with: + ruby-version: 3 + bundler-cache: true + - run: bundle exec danger + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +``` + ## Development 1. Clone this repo 2. Run `bundle install` to setup dependencies. 3. Run `bundle exec rake spec` to run the tests.