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
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
- main

jobs:
test-suite:

Check warning on line 12 in .github/workflows/tests.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

tests.yaml:12: overly broad permissions: default permissions used due to no permissions: block
name: "Test Suite"

runs-on: ubuntu-latest
runs-on: ubuntu-24.04

strategy:
fail-fast: false # Don't cancel all jobs if one fails.

steps:
- uses: actions/checkout@v3

Check failure on line 21 in .github/workflows/tests.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 21 in .github/workflows/tests.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

tests.yaml:21: unpinned action reference: action is not pinned to a hash (required by blanket policy)
- name: Run Setup
run: cd ${{ github.workspace }} && bin/setup
- name: Run Bazel Tests
Expand Down
1 change: 1 addition & 0 deletions bin/test-suite
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export BAZEL_TEST_OPTS="--verbose_failures --test_verbose_timeout_warnings --ver
export RUBY_VERSION="$(__version.detect .ruby-version)"
export BUNDLER_VERSION=$(gem.gemfile.bundler-version)
export RULES_VERSION=$(__version.detect .rules_version)
export USE_BAZEL_VERSION="${USE_BAZEL_VERSION:-$(__version.detect .bazelversion)}"

h3bg "RUBY_VERSION=${RUBY_VERSION}"

Expand Down
1 change: 1 addition & 0 deletions examples/example_gem/.bazelversion
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4.1.0
2 changes: 1 addition & 1 deletion examples/simple_rails_api/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 6.1.7'
gem 'rails', '~> 7.2.3'
# Use sqlite3 as the database for Active Record
gem 'sqlite3', '~> 1.4'
# Use Puma as the app server
Expand Down
262 changes: 155 additions & 107 deletions examples/simple_rails_api/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,166 +1,214 @@
GEM
remote: https://rubygems.org/
specs:
actioncable (6.1.7.8)
actionpack (= 6.1.7.8)
activesupport (= 6.1.7.8)
actioncable (7.2.4)
actionpack (= 7.2.4)
activesupport (= 7.2.4)
nio4r (~> 2.0)
websocket-driver (>= 0.6.1)
actionmailbox (6.1.7.8)
actionpack (= 6.1.7.8)
activejob (= 6.1.7.8)
activerecord (= 6.1.7.8)
activestorage (= 6.1.7.8)
activesupport (= 6.1.7.8)
mail (>= 2.7.1)
actionmailer (6.1.7.8)
actionpack (= 6.1.7.8)
actionview (= 6.1.7.8)
activejob (= 6.1.7.8)
activesupport (= 6.1.7.8)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 2.0)
actionpack (6.1.7.8)
actionview (= 6.1.7.8)
activesupport (= 6.1.7.8)
rack (~> 2.0, >= 2.0.9)
zeitwerk (~> 2.6)
actionmailbox (7.2.4)
actionpack (= 7.2.4)
activejob (= 7.2.4)
activerecord (= 7.2.4)
activestorage (= 7.2.4)
activesupport (= 7.2.4)
mail (>= 2.8.0)
actionmailer (7.2.4)
actionpack (= 7.2.4)
actionview (= 7.2.4)
activejob (= 7.2.4)
activesupport (= 7.2.4)
mail (>= 2.8.0)
rails-dom-testing (~> 2.2)
actionpack (7.2.4)
actionview (= 7.2.4)
activesupport (= 7.2.4)
cgi
nokogiri (>= 1.8.5)
racc
rack (>= 2.2.4, < 3.3)
rack-session (>= 1.0.1)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.2.0)
actiontext (6.1.7.8)
actionpack (= 6.1.7.8)
activerecord (= 6.1.7.8)
activestorage (= 6.1.7.8)
activesupport (= 6.1.7.8)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
useragent (~> 0.16)
actiontext (7.2.4)
actionpack (= 7.2.4)
activerecord (= 7.2.4)
activestorage (= 7.2.4)
activesupport (= 7.2.4)
globalid (>= 0.6.0)
nokogiri (>= 1.8.5)
actionview (6.1.7.8)
activesupport (= 6.1.7.8)
actionview (7.2.4)
activesupport (= 7.2.4)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.1, >= 1.2.0)
activejob (6.1.7.8)
activesupport (= 6.1.7.8)
cgi
erubi (~> 1.11)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
activejob (7.2.4)
activesupport (= 7.2.4)
globalid (>= 0.3.6)
activemodel (6.1.7.8)
activesupport (= 6.1.7.8)
activerecord (6.1.7.8)
activemodel (= 6.1.7.8)
activesupport (= 6.1.7.8)
activestorage (6.1.7.8)
actionpack (= 6.1.7.8)
activejob (= 6.1.7.8)
activerecord (= 6.1.7.8)
activesupport (= 6.1.7.8)
activemodel (7.2.4)
activesupport (= 7.2.4)
activerecord (7.2.4)
activemodel (= 7.2.4)
activesupport (= 7.2.4)
timeout (>= 0.4.0)
activestorage (7.2.4)
actionpack (= 7.2.4)
activejob (= 7.2.4)
activerecord (= 7.2.4)
activesupport (= 7.2.4)
marcel (~> 1.0)
mini_mime (>= 1.1.0)
activesupport (6.1.7.8)
concurrent-ruby (~> 1.0, >= 1.0.2)
activesupport (7.2.4)
base64
benchmark (>= 0.3)
bigdecimal
concurrent-ruby (~> 1.0, >= 1.3.1)
connection_pool (>= 2.2.5, < 3)
drb
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
zeitwerk (~> 2.3)
logger (>= 1.4.2)
minitest (>= 5.1, < 6)
securerandom (>= 0.3)
tzinfo (~> 2.0, >= 2.0.5)
base64 (0.3.0)
benchmark (0.5.0)
bigdecimal (4.1.3)
bootsnap (1.9.1)
msgpack (~> 1.0)
builder (3.3.0)
byebug (11.1.3)
concurrent-ruby (1.3.4)
crass (1.0.6)
date (3.3.4)
erubi (1.13.0)
cgi (0.5.2)
concurrent-ruby (1.3.8)
connection_pool (2.5.5)
crass (1.0.8)
date (3.6.0)
drb (2.2.3)
erb (6.0.7)
erubi (1.13.1)
ffi (1.15.4)
globalid (1.2.1)
globalid (1.4.0)
activesupport (>= 6.1)
i18n (1.14.6)
i18n (1.15.2)
concurrent-ruby (~> 1.0)
io-console (0.9.4)
irb (1.18.0)
pp (>= 0.6.0)
prism (>= 1.3.0)
rdoc (>= 4.0.0)
reline (>= 0.4.2)
listen (3.0.8)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
loofah (2.22.0)
logger (1.7.0)
loofah (2.25.2)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
mail (2.8.1)
mail (2.9.1)
logger
mini_mime (>= 0.1.1)
net-imap
net-pop
net-smtp
marcel (1.0.4)
method_source (1.1.0)
marcel (1.2.1)
mini_mime (1.1.5)
mini_portile2 (2.8.7)
minitest (5.25.1)
mini_portile2 (2.8.9)
minitest (5.27.0)
msgpack (1.4.2)
net-imap (0.4.16)
net-imap (0.6.8)
date
net-protocol
net-pop (0.1.2)
net-protocol
net-protocol (0.2.2)
net-protocol (0.4.0)
timeout
net-smtp (0.5.0)
net-smtp (0.5.2)
net-protocol
nio4r (2.7.3)
nokogiri (1.16.7)
nio4r (2.7.5)
nokogiri (1.19.4)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
pp (0.6.4)
prettyprint
prettyprint (0.2.1)
prism (2.0.0)
puma (5.6.9)
nio4r (~> 2.0)
racc (1.8.1)
rack (2.2.9)
rack-test (2.1.0)
rack (3.2.7)
rack-session (2.1.2)
base64 (>= 0.1.0)
rack (>= 3.0.0)
rack-test (2.3.0)
rack (>= 1.3)
rails (6.1.7.8)
actioncable (= 6.1.7.8)
actionmailbox (= 6.1.7.8)
actionmailer (= 6.1.7.8)
actionpack (= 6.1.7.8)
actiontext (= 6.1.7.8)
actionview (= 6.1.7.8)
activejob (= 6.1.7.8)
activemodel (= 6.1.7.8)
activerecord (= 6.1.7.8)
activestorage (= 6.1.7.8)
activesupport (= 6.1.7.8)
rackup (2.3.1)
rack (>= 3)
rails (7.2.4)
actioncable (= 7.2.4)
actionmailbox (= 7.2.4)
actionmailer (= 7.2.4)
actionpack (= 7.2.4)
actiontext (= 7.2.4)
actionview (= 7.2.4)
activejob (= 7.2.4)
activemodel (= 7.2.4)
activerecord (= 7.2.4)
activestorage (= 7.2.4)
activesupport (= 7.2.4)
bundler (>= 1.15.0)
railties (= 6.1.7.8)
sprockets-rails (>= 2.0.0)
rails-dom-testing (2.2.0)
railties (= 7.2.4)
rails-dom-testing (2.3.0)
activesupport (>= 5.0.0)
minitest
nokogiri (>= 1.6)
rails-html-sanitizer (1.6.0)
loofah (~> 2.21)
nokogiri (~> 1.14)
railties (6.1.7.8)
actionpack (= 6.1.7.8)
activesupport (= 6.1.7.8)
method_source
rails-html-sanitizer (1.7.1)
loofah (~> 2.25, >= 2.25.2)
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
railties (7.2.4)
actionpack (= 7.2.4)
activesupport (= 7.2.4)
cgi
irb (~> 1.13)
rackup (>= 1.0.0)
rake (>= 12.2)
thor (~> 1.0)
rake (13.2.1)
thor (~> 1.0, >= 1.2.2)
tsort (>= 0.2)
zeitwerk (~> 2.6)
rake (13.4.2)
rb-fsevent (0.11.0)
rb-inotify (0.10.1)
ffi (~> 1.0)
rbs (4.2.0)
logger
prism (>= 1.6.0)
tsort
rdoc (8.1.0)
erb
prism (>= 1.6.0)
rbs (>= 4.0.0)
tsort
reline (0.7.0)
io-console (~> 0.5)
securerandom (0.4.1)
spring (2.1.1)
spring-watcher-listen (2.0.1)
listen (>= 2.7, < 4.0)
spring (>= 1.2, < 3.0)
sprockets (4.2.1)
concurrent-ruby (~> 1.0)
rack (>= 2.2.4, < 4)
sprockets-rails (3.5.2)
actionpack (>= 6.1)
activesupport (>= 6.1)
sprockets (>= 3.0.0)
sqlite3 (1.4.2)
thor (1.3.2)
timeout (0.4.1)
thor (1.5.0)
timeout (0.6.1)
tsort (0.2.0)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
websocket-driver (0.7.6)
useragent (0.16.11)
websocket-driver (0.8.2)
base64
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
zeitwerk (2.7.0)
zeitwerk (2.8.3)

PLATFORMS
ruby
Expand All @@ -170,11 +218,11 @@ DEPENDENCIES
byebug
listen (>= 3.0.5, < 3.2)
puma (~> 5.6)
rails (~> 6.1.7)
rails (~> 7.2.3)
spring
spring-watcher-listen (~> 2.0.0)
sqlite3 (~> 1.4)
tzinfo-data

BUNDLED WITH
2.2.24
2.5.22
1 change: 1 addition & 0 deletions examples/simple_script/.bazelversion
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4.1.0
2 changes: 2 additions & 0 deletions examples/simple_script/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ ruby_test(
deps = [
"@bundle//:awesome_print",
"@bundle//:bin",
"@bundle//:colored2",
"@bundle//:rspec",
"@bundle//:rspec-its",
],
Expand All @@ -65,6 +66,7 @@ ruby_rspec(
]),
deps = [
"@bundle//:awesome_print",
"@bundle//:colored2",
],
)

Expand Down
10 changes: 5 additions & 5 deletions ruby/tests/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
load(
"@io_bazel_rules_docker//container:container.bzl",
"container_image",
)
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library")
load("@rules_pkg//:pkg.bzl", "pkg_tar")
load(
"//ruby:defs.bzl",
"ruby_binary",
"ruby_test",
)
load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar")
load(
"@io_bazel_rules_docker//container:container.bzl",
"container_image",
)

# Checks if args are correctly passed to the ruby script.
ruby_test(
Expand Down
Loading