Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,16 @@ jobs:
cache-dependency-path: |
primer_view_components/package-lock.json
primer_view_components/demo/package-lock.json
- name: Set up Chrome 156
id: chrome
run: |
curl --fail --silent --show-error --location \
https://storage.googleapis.com/chrome-for-testing-public/156.0.8078.79/linux64/chrome-linux64.zip \
-o "$RUNNER_TEMP/chrome.zip"
unzip -q "$RUNNER_TEMP/chrome.zip" -d "$RUNNER_TEMP/chrome-156"
chrome_path="$RUNNER_TEMP/chrome-156/chrome-linux64/chrome"
"$chrome_path" --version
echo "chrome-path=$chrome_path" >> "$GITHUB_OUTPUT"
- name: Install JavaScript dependencies
run: |
npm ci
Expand All @@ -245,6 +255,7 @@ jobs:
shell: bash
env:
RAKE_TASKS: ${{ matrix.tasks }}
BROWSER_PATH: ${{ steps.chrome.outputs.chrome-path }}
run: |
read -r -a tasks <<< "$RAKE_TASKS"
bundle exec rake "${tasks[@]}"
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/update-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,15 @@ jobs:
with:
ruby-version: head
- name: Update Ruby head dependencies
# Ruby head can ship default gems that are not published, so checksums cannot be generated.
run: bundle lock --update --gemfile gemfiles/rails_main_head.gemfile
# Ruby head can ship unpublished default gems. Existing checksum sections survive
# `bundle lock` and leave empty entries that frozen installs reject.
run: |
bundle lock --update --gemfile gemfiles/rails_main_head.gemfile
ruby <<'RUBY'
path = "gemfiles/rails_main_head.gemfile.lock"
File.write(path, File.read(path).sub(/^CHECKSUMS\n(?: .*\n)*\n/, ""))
RUBY
BUNDLE_FROZEN=true bundle install --gemfile gemfiles/rails_main_head.gemfile
- name: Verify Rails revisions
env:
EXPECTED_REVISION: ${{ steps.rails.outputs.revision }}
Expand Down
33 changes: 18 additions & 15 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ GEM
rubocop (>= 1)
smart_properties
erubi (1.13.1)
ferrum (0.20.1)
ferrum (0.20.2)
addressable (~> 2.5)
base64 (~> 0.2)
concurrent-ruby (~> 1.1)
Expand Down Expand Up @@ -242,7 +242,7 @@ GEM
racc (~> 1.4)
paint (2.3.0)
parallel (2.3.0)
parser (3.3.13.0)
parser (3.3.14.0)
ast (~> 2.4.1)
racc
pastel (0.8.0)
Expand All @@ -263,7 +263,7 @@ GEM
activesupport (>= 7.0.0)
rack
public_suffix (7.0.5)
puma (8.1.1)
puma (8.1.2)
nio4r (~> 2.0)
racc (1.8.1)
rack (3.2.8)
Expand Down Expand Up @@ -324,7 +324,7 @@ GEM
redis-client (>= 0.22.0)
redis-client (0.31.0)
connection_pool
regexp_parser (2.13.1)
regexp_parser (2.13.4)
reline (0.7.0)
io-console (~> 0.5)
rspec-core (3.13.7)
Expand Down Expand Up @@ -355,9 +355,11 @@ GEM
rubocop-ast (>= 1.49.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 4.0)
rubocop-ast (1.51.0)
rubocop-ast (1.53.0)
ast (~> 2.4)
parser (>= 3.3.7.2)
prism (>= 1.7)
racc
rubocop-md (2.0.4)
lint_roller (~> 1.1)
rubocop (>= 1.72.1)
Expand Down Expand Up @@ -428,10 +430,10 @@ GEM
useragent (0.16.11)
warning (1.6.0)
websocket (1.2.11)
websocket-driver (0.8.2)
websocket-driver (0.9.0)
base64
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
websocket-extensions (>= 0.2.0)
websocket-extensions (0.2.0)
xpath (3.2.0)
nokogiri (~> 1.8)
yard (0.9.45)
Expand Down Expand Up @@ -516,6 +518,7 @@ CHECKSUMS
better_html (2.2.0) sha256=e68ab66ab09696b708333bbf35e8aa3c107500ba7892f528e2111624bdd8cf76
bigdecimal (4.1.3) sha256=61ebe1e5e559bdc3cc6f2c0ee7f427321fc838f59611c294356eb04d6e21cf66
builder (3.3.0) sha256=497918d2f9dca528fdca4b88d84e4ef4387256d984b8154e9d5d3fe5a9c8835f
bundler (4.0.20) sha256=7978a8ac648767f5e635bc522445b79e80a52b907a39a36c2d8085ed6bc762ae
capybara (3.40.0) sha256=42dba720578ea1ca65fd7a41d163dd368502c191804558f6e0f71b391054aeef
concurrent-ruby (1.3.8) sha256=b2f1be836e968ccc78ccfce277ea79c72a88633f22306782c16ff23fb415d1e1
connection_pool (3.0.3) sha256=e0f8ee3ee0039396753e06e8a2dde0ef028e40f7df29e97f57da7577c489cb5e
Expand All @@ -537,7 +540,7 @@ CHECKSUMS
erb (6.0.7) sha256=c5ca6dc25b0ef974a44dc8f59fe847577122483b1968a38dec305c60bf91ee92
erb_lint (0.9.0) sha256=dfb5e40ad839e8d1f0d56ca85ec9a7ac4c9cd966ec281138282f35b323ca7c31
erubi (1.13.1) sha256=a082103b0885dbc5ecf1172fede897f9ebdb745a4b97a5e8dc63953db1ee4ad9
ferrum (0.20.1) sha256=3a33d27f3e48ec66a36f7eaffa29180a9f1f4ff32694e8f2bc43d249f47612dc
ferrum (0.20.2) sha256=0bfa34ca95cf81800092c7dafaf8f6fdf75cd24e973300c653ac0669a1c42068
ffi (1.17.4-aarch64-linux-gnu) sha256=b208f06f91ffd8f5e1193da3cae3d2ccfc27fc36fba577baf698d26d91c080df
ffi (1.17.4-aarch64-linux-musl) sha256=9286b7a615f2676245283aef0a0a3b475ae3aae2bb5448baace630bb77b91f39
ffi (1.17.4-arm-linux-gnu) sha256=d6dbddf7cb77bf955411af5f187a65b8cd378cb003c15c05697f5feee1cb1564
Expand Down Expand Up @@ -591,7 +594,7 @@ CHECKSUMS
nokogiri (1.19.5-x86_64-linux-musl) sha256=6c55a0c8ecb376ed19f248cf248841cc5bf41d94b3256a45af8da80fb1b24114
paint (2.3.0) sha256=327d623e4038619d5bd99ae5db07973859cd78400c7f0329eea283cef8e83be5
parallel (2.3.0) sha256=f75a3e904101ce6a1ccb6b8dc800cbafd42166d83330192438dcf29395167a6f
parser (3.3.13.0) sha256=e02f9b63c2fe05b0c68f692ba4df89b3cb113b663964f75d988fbebfd6c3deca
parser (3.3.14.0) sha256=62f8f76af7b919425ee2d811880e9dcb8011ab40bfd59970dfb583141697e58f
pastel (0.8.0) sha256=481da9fb7d2f6e6b1a08faf11fa10363172dc40fd47848f096ae21209f805a75
pp (0.6.4) sha256=dfcb0fce700c41456265922884f9fe195d7fbb0674a3578e6c0f69588e82b570
prettyprint (0.2.1) sha256=d555d57ea6d7cf001d4774b693546a6bd88bec1e778ddffb5c60b68ceec4b7d4
Expand All @@ -605,7 +608,7 @@ CHECKSUMS
prism (2.1.0-x86_64-linux-musl) sha256=249f45981726923e259b927902246219fa25ad10a76f43849c9aee1a3d3ec5b8
propshaft (1.3.2) sha256=1d56a3e56a92c21bfc29caf07406b5386b00d4c47ddf357cf989a5a234b1389e
public_suffix (7.0.5) sha256=1a8bb08f1bbea19228d3bed6e5ed908d1cb4f7c2726d18bd9cadf60bc676f623
puma (8.1.1) sha256=24800758cf064ecc19d056301b6946f628d77ea14653d485fa17ff6a6331555c
puma (8.1.2) sha256=3a6d9a34c9a4d0175eabd11b703939b5d43ebe08bc2534ac7dfd4df33a6ceedc
racc (1.8.1) sha256=4a7f6929691dbec8b5209a0b373bc2614882b55fc5d2e447a21aaa691303d62f
rack (3.2.8) sha256=1fecc85e463ebc7a2a945fff829ffcd549babeb1556384796fad946c28dc4ec7
rack-session (2.1.2) sha256=595434f8c0c3473ae7d7ac56ecda6cc6dfd9d37c0b2b5255330aa1576967ffe8
Expand All @@ -622,15 +625,15 @@ CHECKSUMS
reactionview (0.6.1) sha256=b58b933580129c36516d0bedda27dbb89a0e97f3ea38561031bc03be61d9e76f
redis (5.4.1) sha256=b5e675b57ad22b15c9bcc765d5ac26f60b675408af916d31527af9bd5a81faae
redis-client (0.31.0) sha256=6820cb2a21e6795a823141f50fd25e655de2b8dc8ff833b43509a27b0263fd75
regexp_parser (2.13.1) sha256=5aedb6b7c35688f51e86eef17a15374dfd287c83f4ca644b2c5f3ec50a33b44b
regexp_parser (2.13.4) sha256=1d0547814f57e6f00946957bd0ca201bc42f42cfb08eee89df60998aedcd8a3b
reline (0.7.0) sha256=5b012d8e55dbf9d450f12bde2cf7d15ff546ae80b3f8f3b30e570d431815583d
rspec-core (3.13.7) sha256=c64ff16d9788119805cbc6a3f4b6d87cc22417c2d25976a3330de136896b5469
rspec-expectations (3.13.6) sha256=bf538ca6d367ff5b0d85a87fdb5c0c6038f2cd1308a0eeba07476caa02d22f35
rspec-mocks (3.13.9) sha256=ea5c7ff3054a6098ca6039aacef80aec69d5a8a3ef80be8fc88337359b672a30
rspec-rails (8.1.0) sha256=5e6c6a4e7f7d644b56e412d410824f6480c1e5a9c61b8448998236b4a4dbf3be
rspec-support (3.13.8) sha256=e4160030309b7e3e9d9863dfe720a35dfcc577162f5402cd68fc8c5258a0ffd6
rubocop (1.91.0) sha256=9c82b7bf391c5d7e3798c5b9996e22a1fe3bd7468e351dfdeb96140c058296d0
rubocop-ast (1.51.0) sha256=0ec311e36b191b3872d909078a35274e962ae97dbce64be6812d145ca59acfcb
rubocop-ast (1.53.0) sha256=027984d28485d6502ae4c72f9341080f54f538599f5dbb54f81875a4ddcad574
rubocop-md (2.0.4) sha256=0d076b6b5e99dea2ddc928c4bd702497decb9a8400da7808091e02ebcafcfb93
rubocop-performance (1.26.1) sha256=cd19b936ff196df85829d264b522fd4f98b6c89ad271fa52744a8c11b8f71834
ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33
Expand Down Expand Up @@ -667,8 +670,8 @@ CHECKSUMS
view_component (4.24.0)
warning (1.6.0) sha256=a49cdfae19fb77d19afff2efbe45f8ab759e9cd25b4e4ce2c79dbaf46bdb6c9e
websocket (1.2.11) sha256=b7e7a74e2410b5e85c25858b26b3322f29161e300935f70a0e0d3c35e0462737
websocket-driver (0.8.2) sha256=97c556b019bf3410b4961002ac501621e9322d3f8a7bc02161a09301cc4c4146
websocket-extensions (0.1.5) sha256=1c6ba63092cda343eb53fc657110c71c754c56484aad42578495227d717a8241
websocket-driver (0.9.0) sha256=4dfcc6ac0ea1b6771daf5fb54cbbca131e4d5922ea0a65ba2da980370dadbe9f
websocket-extensions (0.2.0) sha256=6fb0d0f687aa8adc8eafa5ce68db36dfd6a8ebf232515040ce27c33c1291e589
xpath (3.2.0) sha256=6dfda79d91bb3b949b947ecc5919f042ef2f399b904013eb3ef6d20dd3a4082e
yard (0.9.45) sha256=52e211493f7cb8a3ebf7e104a25a1e73937a3103092545d34cb88fafebb3dc51
yard-activesupport-concern (0.0.1) sha256=be790cb0efc23e2e87677063598ac8b743586154657bbd9655a7f03ce78390ef
Expand Down
6 changes: 5 additions & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ nav_order: 6

## main

* Fix automated dependency updates when Ruby head includes unpublished default gems.
* Pin Chrome in all Primer ViewComponents compatibility suites to match upstream system tests.

*Joel Hawksley*

* Fix automated dependency updates when Ruby head includes unpublished default gems, including frozen CI installs.

*Joel Hawksley*

Expand Down
2 changes: 1 addition & 1 deletion docs/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -300,4 +300,4 @@ DEPENDENCIES
webrick

BUNDLED WITH
4.0.13
4.0.20
20 changes: 11 additions & 9 deletions gemfiles/rails_7.1.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ GEM
rubocop (>= 1)
smart_properties
erubi (1.13.1)
ferrum (0.20.1)
ferrum (0.20.2)
addressable (~> 2.5)
base64 (~> 0.2)
concurrent-ruby (~> 1.1)
Expand Down Expand Up @@ -233,7 +233,7 @@ GEM
nokogiri (1.19.5-x86_64-linux-musl)
racc (~> 1.4)
parallel (1.28.0)
parser (3.3.13.0)
parser (3.3.14.0)
ast (~> 2.4.1)
racc
pp (0.6.4)
Expand All @@ -245,7 +245,7 @@ GEM
activesupport (>= 7.0.0)
rack
public_suffix (7.0.5)
puma (8.1.1)
puma (8.1.2)
nio4r (~> 2.0)
racc (1.8.1)
rack (3.2.8)
Expand Down Expand Up @@ -307,7 +307,7 @@ GEM
redis-client (>= 0.22.0)
redis-client (0.31.0)
connection_pool
regexp_parser (2.13.1)
regexp_parser (2.13.4)
reline (0.7.0)
io-console (~> 0.5)
rspec-core (3.13.7)
Expand Down Expand Up @@ -338,9 +338,11 @@ GEM
rubocop-ast (>= 1.49.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 4.0)
rubocop-ast (1.51.0)
rubocop-ast (1.53.0)
ast (~> 2.4)
parser (>= 3.3.7.2)
prism (>= 1.7)
racc
rubocop-md (2.0.4)
lint_roller (~> 1.1)
rubocop (>= 1.72.1)
Expand Down Expand Up @@ -397,10 +399,10 @@ GEM
unicode-emoji (4.3.0)
warning (1.6.0)
websocket (1.2.11)
websocket-driver (0.8.2)
websocket-driver (0.9.0)
base64
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
websocket-extensions (>= 0.2.0)
websocket-extensions (0.2.0)
xpath (3.2.0)
nokogiri (~> 1.8)
yard (0.9.45)
Expand Down Expand Up @@ -468,4 +470,4 @@ RUBY VERSION
ruby 3.2.8p263

BUNDLED WITH
4.0.13
4.0.20
20 changes: 11 additions & 9 deletions gemfiles/rails_7.2.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ GEM
rubocop (>= 1)
smart_properties
erubi (1.13.1)
ferrum (0.20.1)
ferrum (0.20.2)
addressable (~> 2.5)
base64 (~> 0.2)
concurrent-ruby (~> 1.1)
Expand Down Expand Up @@ -226,7 +226,7 @@ GEM
nokogiri (1.19.5-x86_64-linux-musl)
racc (~> 1.4)
parallel (2.3.0)
parser (3.3.13.0)
parser (3.3.14.0)
ast (~> 2.4.1)
racc
pp (0.6.4)
Expand All @@ -245,7 +245,7 @@ GEM
activesupport (>= 7.0.0)
rack
public_suffix (7.0.5)
puma (8.1.1)
puma (8.1.2)
nio4r (~> 2.0)
racc (1.8.1)
rack (3.2.8)
Expand Down Expand Up @@ -307,7 +307,7 @@ GEM
redis-client (>= 0.22.0)
redis-client (0.31.0)
connection_pool
regexp_parser (2.13.1)
regexp_parser (2.13.4)
reline (0.7.0)
io-console (~> 0.5)
rspec-core (3.13.7)
Expand Down Expand Up @@ -338,9 +338,11 @@ GEM
rubocop-ast (>= 1.49.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 4.0)
rubocop-ast (1.51.0)
rubocop-ast (1.53.0)
ast (~> 2.4)
parser (>= 3.3.7.2)
prism (>= 1.7)
racc
rubocop-md (2.0.4)
lint_roller (~> 1.1)
rubocop (>= 1.72.1)
Expand Down Expand Up @@ -397,10 +399,10 @@ GEM
useragent (0.16.11)
warning (1.6.0)
websocket (1.2.11)
websocket-driver (0.8.2)
websocket-driver (0.9.0)
base64
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
websocket-extensions (>= 0.2.0)
websocket-extensions (0.2.0)
xpath (3.2.0)
nokogiri (~> 1.8)
yard (0.9.45)
Expand Down Expand Up @@ -468,4 +470,4 @@ RUBY VERSION
ruby 3.3.8p144

BUNDLED WITH
4.0.13
4.0.20
20 changes: 11 additions & 9 deletions gemfiles/rails_8.0.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ GEM
rubocop (>= 1)
smart_properties
erubi (1.13.1)
ferrum (0.20.1)
ferrum (0.20.2)
addressable (~> 2.5)
base64 (~> 0.2)
concurrent-ruby (~> 1.1)
Expand Down Expand Up @@ -223,7 +223,7 @@ GEM
nokogiri (1.19.5-x86_64-linux-musl)
racc (~> 1.4)
parallel (2.3.0)
parser (3.3.13.0)
parser (3.3.14.0)
ast (~> 2.4.1)
racc
pp (0.6.4)
Expand All @@ -242,7 +242,7 @@ GEM
activesupport (>= 7.0.0)
rack
public_suffix (7.0.5)
puma (8.1.1)
puma (8.1.2)
nio4r (~> 2.0)
racc (1.8.1)
rack (3.2.8)
Expand Down Expand Up @@ -303,7 +303,7 @@ GEM
redis-client (>= 0.22.0)
redis-client (0.31.0)
connection_pool
regexp_parser (2.13.1)
regexp_parser (2.13.4)
reline (0.7.0)
io-console (~> 0.5)
rspec-core (3.13.7)
Expand Down Expand Up @@ -334,9 +334,11 @@ GEM
rubocop-ast (>= 1.49.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 4.0)
rubocop-ast (1.51.0)
rubocop-ast (1.53.0)
ast (~> 2.4)
parser (>= 3.3.7.2)
prism (>= 1.7)
racc
rubocop-md (2.0.4)
lint_roller (~> 1.1)
rubocop (>= 1.72.1)
Expand Down Expand Up @@ -394,10 +396,10 @@ GEM
useragent (0.16.11)
warning (1.6.0)
websocket (1.2.11)
websocket-driver (0.8.2)
websocket-driver (0.9.0)
base64
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
websocket-extensions (>= 0.2.0)
websocket-extensions (0.2.0)
xpath (3.2.0)
nokogiri (~> 1.8)
yard (0.9.45)
Expand Down Expand Up @@ -465,4 +467,4 @@ RUBY VERSION
ruby 3.4.4p34

BUNDLED WITH
4.0.13
4.0.20
Loading
Loading