Skip to content

.

. #238

Workflow file for this run

name: ci
on: [push, pull_request]
jobs:
qa:
timeout-minutes: 5
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['2.7', '3.0', '3.1']
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Freeze autogenerated files
run: |
chmod 0444 Gemfile.lock
- name: Setup Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Run tests
run: |
bin/rspec
merge:
if: ${{ contains(github.event.pull_request.labels.*.name, 'automerge') }}
runs-on: ubuntu-latest
needs: qa
permissions:
contents: write
pull-requests: write
steps:
- name: Merge pull request
uses: pascalgn/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MERGE_LABELS: "automerge"
MERGE_METHOD: "squash"
MERGE_COMMIT_MESSAGE: |
${{ github.event.pull_request.title }} (#${{ github.event.pull_request.number }})
${{ github.event.pull_request.body }}
MERGE_DELETE_BRANCH: "true"