Skip to content

Commit 72b416b

Browse files
authored
Merge pull request #24 from github-community-projects/jm_dependabot_and_gha
chore: add dependabot config
2 parents 8f89186 + c16ba4f commit 72b416b

File tree

3 files changed

+50
-29
lines changed

3 files changed

+50
-29
lines changed

.github/dependabot.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "bundler"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
commit-message:
8+
prefix: "chore(deps)"
9+
groups:
10+
dependencies:
11+
applies-to: version-updates
12+
update-types:
13+
- "minor"
14+
- "patch"
15+
- package-ecosystem: "github-actions"
16+
directory: "/"
17+
schedule:
18+
interval: "weekly"
19+
commit-message:
20+
prefix: "chore(deps)"
21+
groups:
22+
dependencies:
23+
applies-to: version-updates
24+
update-types:
25+
- "minor"
26+
- "patch"

.github/workflows/ci.yml

Lines changed: 21 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
name: CI
2-
32
on: [push, pull_request]
4-
53
jobs:
64
build:
75
name: Test on Ruby ${{ matrix.ruby_version }}, Rails ${{ matrix.rails_version }}, graphql-ruby ${{ matrix.graphql_version }}
@@ -26,29 +24,28 @@ jobs:
2624
- "~> 7.0.0"
2725
- "~> 7.1.0"
2826
steps:
29-
- uses: actions/checkout@v4
30-
- name: Set up Ruby ${{ matrix.ruby_version }}
31-
uses: ruby/setup-ruby@v1
32-
with:
33-
ruby-version: ${{ matrix.ruby_version }}
34-
- name: Build and test
35-
run: |
36-
bundle install --jobs 4 --retry 3
37-
bundle exec rake test
38-
env:
39-
RAILS_VERSION: ${{ matrix.rails_version }}
40-
GRAPHQL_VERSION: ${{ matrix.graphql_version }}
41-
27+
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
28+
- name: Set up Ruby ${{ matrix.ruby_version }}
29+
uses: ruby/setup-ruby@d5fb7a202fc07872cb44f00ba8e6197b70cb0c55 # v1
30+
with:
31+
ruby-version: ${{ matrix.ruby_version }}
32+
- name: Build and test
33+
run: |
34+
bundle install --jobs 4 --retry 3
35+
bundle exec rake test
36+
env:
37+
RAILS_VERSION: ${{ matrix.rails_version }}
38+
GRAPHQL_VERSION: ${{ matrix.graphql_version }}
4239
rubocop:
4340
name: Rubocop
4441
runs-on: ubuntu-latest
4542
steps:
46-
- uses: actions/checkout@v4
47-
- name: Set up Ruby
48-
uses: ruby/setup-ruby@v1
49-
with:
50-
ruby-version: 3.2
51-
- name: Build and test
52-
run: |
53-
bundle install --jobs 4 --retry 3
54-
bundle exec rake rubocop
43+
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
44+
- name: Set up Ruby
45+
uses: ruby/setup-ruby@d5fb7a202fc07872cb44f00ba8e6197b70cb0c55 # v1
46+
with:
47+
ruby-version: 3.2
48+
- name: Build and test
49+
run: |-
50+
bundle install --jobs 4 --retry 3
51+
bundle exec rake rubocop

.github/workflows/release.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
name: Release
2-
32
on:
43
release:
54
types: [published]
65
workflow_dispatch:
7-
86
jobs:
97
release:
108
name: Release to RubyGems
@@ -13,9 +11,9 @@ jobs:
1311
id-token: write
1412
runs-on: ubuntu-latest
1513
steps:
16-
- uses: actions/checkout@v4
17-
- uses: ruby/setup-ruby@v1
14+
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
15+
- uses: ruby/setup-ruby@d5fb7a202fc07872cb44f00ba8e6197b70cb0c55 # v1
1816
with:
1917
bundler-cache: true
2018
ruby-version: ruby
21-
- uses: rubygems/release-gem@v1
19+
- uses: rubygems/release-gem@612653d273a73bdae1df8453e090060bb4db5f31 # v1

0 commit comments

Comments
 (0)