Fix rubocop issues #17
Workflow file for this run
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: Integrate | |
on: | |
issue_comment: | |
types: [ created ] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
PR_URL: ${{ github.event.issue.pull_request.url }} | |
jobs: | |
integrate: | |
name: Integrate | |
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/integrate') | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone Repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Checkout Pull Request | |
run: | | |
PR_NUM=${PR_URL##*/} | |
gh pr checkout $PR_NUM | |
- uses: ruby/setup-ruby@master | |
- name: Install gems | |
run: bundle install | |
- name: Install dependencies | |
run: bundle exec appraisal install | |
- name: Run Rubocop | |
run: bundle exec appraisal rake rubocop | |
- name: Run Specs | |
run: bundle exec appraisal rake spec | |
- name: Merge PR | |
run: | | |
PR_NUM=${PR_URL##*/} | |
gh pr merge $PR_NUM |