Skip to content

Commit e3afda6

Browse files
authored
Merge branch 'main' into fix-coverage-segfault
2 parents 324f460 + 49b6f0d commit e3afda6

21 files changed

Lines changed: 481 additions & 277 deletions

.github/dependabot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ updates:
33
- package-ecosystem: "bundler"
44
directory: "/"
55
schedule:
6-
interval: "weekly"
6+
interval: "daily"
77
- package-ecosystem: "bundler"
88
directory: "/docs"
99
schedule:
10-
interval: "weekly"
10+
interval: "daily"

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ jobs:
1414
benchmark:
1515
runs-on: ubuntu-latest
1616
env:
17-
BUNDLE_GEMFILE: gemfiles/rails_8.0.gemfile
17+
BUNDLE_GEMFILE: gemfiles/rails_8.1.gemfile
1818
steps:
1919
- uses: actions/checkout@v4.1.1
2020
- name: Setup Ruby
2121
uses: ruby/setup-ruby@v1
2222
with:
23-
ruby-version: 3.4
23+
ruby-version: 4.0
2424
bundler-cache: true
2525
- name: Run benchmarks
2626
run: |
27-
bundle exec appraisal rails-8.0 rake partial_benchmark
28-
bundle exec appraisal rails-8.0 rake translatable_benchmark
27+
bundle exec appraisal rails-8.1 rake partial_benchmark
28+
bundle exec appraisal rails-8.1 rake translatable_benchmark
2929
test:
3030
name: test (Rails ${{ matrix.rails_version }}, Ruby ${{ matrix.ruby_version }})
3131
runs-on: ubuntu-latest
@@ -40,7 +40,7 @@ jobs:
4040
rails_version: "7.2"
4141
- ruby_version: "3.4"
4242
rails_version: "8.0"
43-
- ruby_version: "3.4"
43+
- ruby_version: "4.0"
4444
rails_version: "8.1"
4545
- ruby_version: "head"
4646
rails_version: "main"
@@ -83,7 +83,7 @@ jobs:
8383
- name: Setup Ruby
8484
uses: ruby/setup-ruby@v1
8585
with:
86-
ruby-version: 3.4
86+
ruby-version: 4.0
8787
bundler-cache: true
8888
working-directory: 'view_component'
8989
- uses: actions/setup-node@v4
@@ -99,7 +99,7 @@ jobs:
9999
bundle --quiet && bundle exec rake
100100
env:
101101
VIEW_COMPONENT_PATH: ../view_component
102-
RAILS_VERSION: '8.0.2'
102+
RAILS_VERSION: '8.1.0'
103103
PARALLEL_WORKERS: '1'
104104
coverage:
105105
needs: test
@@ -109,7 +109,7 @@ jobs:
109109
- name: Setup Ruby
110110
uses: ruby/setup-ruby@v1
111111
with:
112-
ruby-version: 3.4
112+
ruby-version: 4.0
113113
bundler-cache: true
114114
- name: Download coverage results
115115
uses: actions/download-artifact@v4.3.0
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Dependabot auto-merge
2+
3+
on:
4+
pull_request:
5+
types: [opened]
6+
7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
11+
jobs:
12+
dependabot:
13+
runs-on: ubuntu-latest
14+
if: github.actor == 'dependabot[bot]'
15+
steps:
16+
- name: Approve Dependabot PR
17+
run: gh pr review --approve "$PR_URL"
18+
env:
19+
PR_URL: ${{github.event.pull_request.html_url}}
20+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
21+
- name: Enable auto-merge for Dependabot PRs
22+
run: gh pr merge --auto --merge "$PR_URL"
23+
env:
24+
PR_URL: ${{github.event.pull_request.html_url}}
25+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

.github/workflows/lint.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,12 @@ jobs:
6262
steps:
6363
- name: echo changed files
6464
run: |
65-
if [[ ! "${{needs.changedfiles.outputs.markdown}}" == *"CHANGELOG.md"* ]]; then
65+
# Filter out Gemfile.lock files from changed files
66+
ALL_FILES="${{needs.changedfiles.outputs.all}}"
67+
FILTERED_FILES=$(echo "$ALL_FILES" | tr ' ' '\n' | grep -v '^Gemfile\.lock$' | grep -v '^docs/Gemfile\.lock$' | tr '\n' ' ' | xargs)
68+
69+
# Only require changelog if there are other files changed
70+
if [[ -n "$FILTERED_FILES" ]] && [[ ! "${{needs.changedfiles.outputs.markdown}}" == *"CHANGELOG.md"* ]]; then
6671
echo "::error file=CHANGELOG.md,line=1,col=1::Please make sure that you add a docs/CHANGELOG.md entry to describe the changes in this pull request."
6772
exit 1
6873
fi
@@ -73,7 +78,7 @@ jobs:
7378
- name: Setup Ruby
7479
uses: ruby/setup-ruby@v1
7580
with:
76-
ruby-version: 3.4
81+
ruby-version: 4.0
7782
- uses: actions/cache@v4
7883
with:
7984
path: vendor/bundle

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ruby 3.4.7
1+
ruby 4.0.1

Gemfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
source "https://rubygems.org"
44
gemspec
55

6-
rails_version = (ENV["RAILS_VERSION"] || "~> 8").to_s
6+
rails_version = (ENV["RAILS_VERSION"] || "~> 8.1").to_s
77

88
gem "rails", (rails_version == "main") ? {git: "https://github.com/rails/rails", ref: "main"} : rails_version
99

10-
ruby_version = (ENV["RUBY_VERSION"] || "~> 3.4").to_s
10+
ruby_version = (ENV["RUBY_VERSION"] || "~> 4.0").to_s
1111
ruby ruby_version
1212

1313
group :development, :test do
@@ -26,6 +26,8 @@ group :development, :test do
2626
gem "m", "~> 1"
2727
gem "method_source", "~> 1"
2828
gem "minitest", "~> 6"
29+
gem "minitest-mock"
30+
gem "nokogiri", "1.19.0"
2931
gem "propshaft", "~> 1"
3032
gem "puma", ">= 6"
3133
gem "rake", "~> 13"

0 commit comments

Comments
 (0)