Skip to content

Test against Rails 8 #41

Test against Rails 8

Test against Rails 8 #41

Workflow file for this run

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 --merge --delete-branch
- name: Add reaction to PR comment
if: always()
env:
REACTION: ${{ job.status == 'success' && 'THUMBS_UP' || 'THUMBS_DOWN' }}
run: |
gh api graphql --paginate -f query='
mutation {
addReaction(input: { clientMutationId: "integrate.yml", content: ${{env.REACTION}}, subjectId: "${{github.event.comment.node_id}}" }) {
clientMutationId
}
}'