Skip to content

Commit 0334b88

Browse files
authored
Update ruby and build env (#93)
* Get the build running and passing specs on host machine * Remove commented directive * Remove Circle CI config * Add tests workflow * Update to latest possible bundler * Rename, remove unsupported option * Try another iteration gor GH actions * Update master branch ref * Try another docker install command * Add x86_64 linux platform support * Add bundle to ruby env * Fix * Remove bundler install * Keep dirs * Only need to install rake, rspec
1 parent 2344651 commit 0334b88

File tree

10 files changed

+129
-108
lines changed

10 files changed

+129
-108
lines changed

.circleci/config.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/tests.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Test Suite
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v2
18+
19+
- name: Set up Ruby 2.7
20+
uses: ruby/setup-ruby@v1
21+
with:
22+
ruby-version: 2.7
23+
24+
- name: Install Docker and Docker Compose
25+
run: |
26+
# Install Docker using the official convenience script
27+
curl -fsSL https://get.docker.com -o get-docker.sh
28+
sh get-docker.sh
29+
sudo apt-get install -y docker-compose
30+
31+
- name: Build Docker image
32+
run: docker-compose build
33+
34+
- name: Install environment support
35+
run: gem install rake rspec
36+
37+
- name: Run tests
38+
run: rake

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ spec/node-client/dist
77
coverage
88

99
node_modules
10+
.bundle
1011

1112
# Workspace
1213
.idea

.ruby-version

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

Dockerfile

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
FROM ruby:2.5.7
1+
FROM ruby:2.7.8
22

33
# Install dependency packages
44
RUN apt-get update && apt-get install -y \
5+
chromium \
56
curl \
67
fonts-liberation \
78
libappindicator3-1 \
@@ -15,6 +16,7 @@ RUN apt-get update && apt-get install -y \
1516
libgtk-3-0 \
1617
libnspr4 \
1718
libnss3 \
19+
libvulkan1 \
1820
libx11-xcb1 \
1921
libxcomposite1 \
2022
libxcursor1 \
@@ -27,12 +29,6 @@ RUN apt-get update && apt-get install -y \
2729
nodejs \
2830
xdg-utils
2931

30-
# Install Chrome
31-
RUN wget --quiet https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
32-
&& dpkg -i google-chrome-stable_current_amd64.deb \
33-
&& apt-get -f install \
34-
&& rm -f /google-chrome-stable_current_amd64.deb
35-
3632
# Install Yarn
3733
ENV PATH=/root/.yarn/bin:$PATH
3834
RUN touch ~/.bashrc && \
@@ -46,7 +42,7 @@ WORKDIR /app
4642
COPY .ruby-version grpc-web.gemspec Gemfile Gemfile.lock /app/
4743
COPY lib/grpc_web/version.rb /app/lib/grpc_web/
4844

49-
RUN gem install bundler \
45+
RUN gem install bundler -v 2.4.22 \
5046
&& bundle config --global frozen 1 \
5147
&& bundle install -j4 --retry 3 \
5248
# Remove unneeded files (cached *.gem, *.o, *.c)

Gemfile.lock

Lines changed: 84 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -2,108 +2,128 @@ PATH
22
remote: .
33
specs:
44
grpc-web (1.2.1)
5+
google-protobuf (~> 3.13.0)
56
grpc (~> 1.0)
67
rack (>= 1.6.0, < 3.0)
78

89
GEM
910
remote: https://rubygems.org/
1011
specs:
11-
addressable (2.7.0)
12-
public_suffix (>= 2.0.2, < 5.0)
13-
apparition (0.1.0)
14-
backports
15-
capybara (~> 3.12, < 4)
12+
addressable (2.8.7)
13+
public_suffix (>= 2.0.2, < 7.0)
14+
apparition (0.6.0)
15+
capybara (~> 3.13, < 4)
1616
websocket-driver (>= 0.6.5)
17-
ast (2.4.0)
18-
backports (3.15.0)
19-
byebug (11.0.1)
20-
capybara (3.15.1)
17+
ast (2.4.3)
18+
base64 (0.2.0)
19+
bigdecimal (3.1.9)
20+
byebug (11.1.3)
21+
capybara (3.39.2)
2122
addressable
23+
matrix
2224
mini_mime (>= 0.1.3)
2325
nokogiri (~> 1.8)
2426
rack (>= 1.6.0)
2527
rack-test (>= 0.6.3)
26-
regexp_parser (~> 1.2)
28+
regexp_parser (>= 1.5, < 3.0)
2729
xpath (~> 3.2)
28-
coderay (1.1.2)
29-
crack (0.4.3)
30-
safe_yaml (~> 1.0.0)
31-
diff-lcs (1.3)
32-
docile (1.3.2)
30+
coderay (1.1.3)
31+
crack (1.0.0)
32+
bigdecimal
33+
rexml
34+
diff-lcs (1.6.1)
35+
docile (1.4.1)
3336
google-protobuf (3.13.0)
37+
google-protobuf (3.13.0-universal-darwin)
38+
google-protobuf (3.13.0-x86_64-linux)
3439
googleapis-common-protos-types (1.0.5)
3540
google-protobuf (~> 3.11)
36-
grpc (1.32.0)
41+
grpc (1.34.0)
3742
google-protobuf (~> 3.13)
3843
googleapis-common-protos-types (~> 1.0)
39-
hashdiff (1.0.0)
40-
jaro_winkler (1.5.4)
41-
json (2.3.0)
42-
method_source (0.9.2)
43-
mini_mime (1.0.2)
44-
mini_portile2 (2.4.0)
45-
nokogiri (1.10.8)
46-
mini_portile2 (~> 2.4.0)
47-
parallel (1.19.1)
48-
parser (2.7.0.2)
49-
ast (~> 2.4.0)
50-
pry (0.12.2)
51-
coderay (~> 1.1.0)
52-
method_source (~> 0.9.0)
53-
pry-byebug (3.7.0)
44+
grpc (1.34.0-universal-darwin)
45+
google-protobuf (~> 3.13)
46+
googleapis-common-protos-types (~> 1.0)
47+
grpc (1.34.0-x86_64-linux)
48+
google-protobuf (~> 3.13)
49+
googleapis-common-protos-types (~> 1.0)
50+
hashdiff (1.1.2)
51+
jaro_winkler (1.5.6)
52+
matrix (0.4.2)
53+
method_source (1.1.0)
54+
mini_mime (1.1.5)
55+
nokogiri (1.15.7-aarch64-linux)
56+
racc (~> 1.4)
57+
nokogiri (1.15.7-arm64-darwin)
58+
racc (~> 1.4)
59+
nokogiri (1.15.7-x86_64-linux)
60+
racc (~> 1.4)
61+
parallel (1.26.3)
62+
parser (3.3.7.4)
63+
ast (~> 2.4.1)
64+
racc
65+
pry (0.14.2)
66+
coderay (~> 1.1)
67+
method_source (~> 1.0)
68+
pry-byebug (3.10.1)
5469
byebug (~> 11.0)
55-
pry (~> 0.10)
56-
public_suffix (4.0.1)
57-
rack (2.0.9)
58-
rack-cors (1.1.0)
70+
pry (>= 0.13, < 0.15)
71+
public_suffix (5.1.1)
72+
racc (1.8.1)
73+
rack (2.2.13)
74+
rack-cors (2.0.2)
5975
rack (>= 2.0.0)
60-
rack-test (1.1.0)
61-
rack (>= 1.0, < 3)
62-
rainbow (3.0.0)
63-
rake (13.0.1)
64-
regexp_parser (1.6.0)
65-
rspec (3.9.0)
66-
rspec-core (~> 3.9.0)
67-
rspec-expectations (~> 3.9.0)
68-
rspec-mocks (~> 3.9.0)
69-
rspec-core (3.9.0)
70-
rspec-support (~> 3.9.0)
71-
rspec-expectations (3.9.0)
76+
rack-test (2.2.0)
77+
rack (>= 1.3)
78+
rainbow (3.1.1)
79+
rake (13.2.1)
80+
regexp_parser (2.10.0)
81+
rexml (3.4.1)
82+
rspec (3.13.0)
83+
rspec-core (~> 3.13.0)
84+
rspec-expectations (~> 3.13.0)
85+
rspec-mocks (~> 3.13.0)
86+
rspec-core (3.13.3)
87+
rspec-support (~> 3.13.0)
88+
rspec-expectations (3.13.3)
7289
diff-lcs (>= 1.2.0, < 2.0)
73-
rspec-support (~> 3.9.0)
74-
rspec-mocks (3.9.0)
90+
rspec-support (~> 3.13.0)
91+
rspec-mocks (3.13.2)
7592
diff-lcs (>= 1.2.0, < 2.0)
76-
rspec-support (~> 3.9.0)
77-
rspec-support (3.9.0)
93+
rspec-support (~> 3.13.0)
94+
rspec-support (3.13.2)
7895
rubocop (0.79.0)
7996
jaro_winkler (~> 1.5.1)
8097
parallel (~> 1.10)
8198
parser (>= 2.7.0.1)
8299
rainbow (>= 2.2.2, < 4.0)
83100
ruby-progressbar (~> 1.7)
84101
unicode-display_width (>= 1.4.0, < 1.7)
85-
rubocop-rspec (1.37.1)
102+
rubocop-rspec (1.41.0)
86103
rubocop (>= 0.68.1)
87-
ruby-progressbar (1.10.1)
88-
safe_yaml (1.0.5)
89-
simplecov (0.17.1)
104+
ruby-progressbar (1.13.0)
105+
simplecov (0.22.0)
90106
docile (~> 1.1)
91-
json (>= 1.8, < 3)
92-
simplecov-html (~> 0.10.0)
93-
simplecov-html (0.10.2)
107+
simplecov-html (~> 0.11)
108+
simplecov_json_formatter (~> 0.1)
109+
simplecov-html (0.13.1)
110+
simplecov_json_formatter (0.1.4)
94111
unicode-display_width (1.6.1)
95-
webmock (3.8.2)
96-
addressable (>= 2.3.6)
112+
webmock (3.25.1)
113+
addressable (>= 2.8.0)
97114
crack (>= 0.3.2)
98115
hashdiff (>= 0.4.0, < 2.0.0)
99-
websocket-driver (0.7.1)
116+
websocket-driver (0.7.7)
117+
base64
100118
websocket-extensions (>= 0.1.0)
101-
websocket-extensions (0.1.4)
119+
websocket-extensions (0.1.5)
102120
xpath (3.2.0)
103121
nokogiri (~> 1.8)
104122

105123
PLATFORMS
106-
ruby
124+
aarch64-linux
125+
arm64-darwin-24
126+
x86_64-linux
107127

108128
DEPENDENCIES
109129
apparition
@@ -118,4 +138,4 @@ DEPENDENCIES
118138
webmock
119139

120140
BUNDLED WITH
121-
2.1.4
141+
2.4.22

docker-compose.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: '3.2'
2-
31
services:
42
ruby:
53
build: .

grpc-web.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Gem::Specification.new do |spec|
2121
spec.require_paths = ['lib']
2222

2323
spec.add_dependency 'grpc', '~> 1.0'
24+
spec.add_dependency 'google-protobuf', '~> 3.13.0'
2425
spec.add_dependency 'rack', '>= 1.6.0', '< 3.0'
2526

2627
spec.add_development_dependency 'apparition'

spec/pb-js-grpc-web-text/.keep

Whitespace-only changes.

spec/pb-js-grpc-web/.keep

Whitespace-only changes.

0 commit comments

Comments
 (0)