Skip to content

Commit

Permalink
Merge pull request #278 from kpumuk/kpumuk-patch-1
Browse files Browse the repository at this point in the history
Dependabot and Appraisal live together happily
  • Loading branch information
kpumuk authored Nov 20, 2023
2 parents f107de1 + 64ff788 commit 6709900
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ updates:
directory: "/"
schedule:
interval: "daily"
labels:
- dependencies
- bundler
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
labels:
- dependencies
- github-actions
38 changes: 38 additions & 0 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: StandardRB

on:
pull_request:
types: [labeled]
permissions:
contents: write

jobs:
build:
if: contains(github.event.pull_request.labels.*.name, 'bundler')
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
ruby-version:
- "3.2"

name: Appraisal - Ruby ${{ matrix.ruby-version }}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Update Appraisal gemfiles
run: |
bundle exec appraisal update
- name: Commit gemfiles
run: |
git config --global user.name "Github Workflow"
git config --global user.email "[email protected]"
git add gemfiles/*
git commit -am "Updated Appraisal gemfiles"
git push

0 comments on commit 6709900

Please sign in to comment.