Skip to content

Commit

Permalink
Merge pull request #24 from github-community-projects/jm_dependabot_a…
Browse files Browse the repository at this point in the history
…nd_gha

chore: add dependabot config
  • Loading branch information
rmosolgo authored Jun 11, 2024
2 parents 8f89186 + c16ba4f commit 72b416b
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 29 deletions.
26 changes: 26 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
version: 2
updates:
- package-ecosystem: "bundler"
directory: "/"
schedule:
interval: "weekly"
commit-message:
prefix: "chore(deps)"
groups:
dependencies:
applies-to: version-updates
update-types:
- "minor"
- "patch"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
commit-message:
prefix: "chore(deps)"
groups:
dependencies:
applies-to: version-updates
update-types:
- "minor"
- "patch"
45 changes: 21 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
name: CI

on: [push, pull_request]

jobs:
build:
name: Test on Ruby ${{ matrix.ruby_version }}, Rails ${{ matrix.rails_version }}, graphql-ruby ${{ matrix.graphql_version }}
Expand All @@ -26,29 +24,28 @@ jobs:
- "~> 7.0.0"
- "~> 7.1.0"
steps:
- uses: actions/checkout@v4
- name: Set up Ruby ${{ matrix.ruby_version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
- name: Build and test
run: |
bundle install --jobs 4 --retry 3
bundle exec rake test
env:
RAILS_VERSION: ${{ matrix.rails_version }}
GRAPHQL_VERSION: ${{ matrix.graphql_version }}

- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
- name: Set up Ruby ${{ matrix.ruby_version }}
uses: ruby/setup-ruby@d5fb7a202fc07872cb44f00ba8e6197b70cb0c55 # v1
with:
ruby-version: ${{ matrix.ruby_version }}
- name: Build and test
run: |
bundle install --jobs 4 --retry 3
bundle exec rake test
env:
RAILS_VERSION: ${{ matrix.rails_version }}
GRAPHQL_VERSION: ${{ matrix.graphql_version }}
rubocop:
name: Rubocop
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
- name: Build and test
run: |
bundle install --jobs 4 --retry 3
bundle exec rake rubocop
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
- name: Set up Ruby
uses: ruby/setup-ruby@d5fb7a202fc07872cb44f00ba8e6197b70cb0c55 # v1
with:
ruby-version: 3.2
- name: Build and test
run: |-
bundle install --jobs 4 --retry 3
bundle exec rake rubocop
8 changes: 3 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: Release

on:
release:
types: [published]
workflow_dispatch:

jobs:
release:
name: Release to RubyGems
Expand All @@ -13,9 +11,9 @@ jobs:
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
- uses: ruby/setup-ruby@d5fb7a202fc07872cb44f00ba8e6197b70cb0c55 # v1
with:
bundler-cache: true
ruby-version: ruby
- uses: rubygems/release-gem@v1
- uses: rubygems/release-gem@612653d273a73bdae1df8453e090060bb4db5f31 # v1

0 comments on commit 72b416b

Please sign in to comment.