Pull Request #1296 Create ruby.yml

* **README.md**
- Add a section about the new GitHub Actions workflow for Ruby
- Mention the supported Ruby versions (3.1, 3.2, 3.3)
- Explain how to trigger the workflow

* **.github/workflows/ruby.yml**
- Create a new GitHub Actions workflow file
- Define the workflow to run on push and pull request events
- Add a job named `test` that runs on `ubuntu-latest`
- Set up Ruby, install dependencies, and run tests using `bundle exec rspec`

Giorgi Meskhidze avatar Giorgi Meskhidze

Pull request event #8705.3 passed

  • Ran for
AMD64
Ruby: 3.3
Git
Raw log
Scroll to End of Log
0.21s0.12s0.00s0.06s0.00s
worker_info
1Worker information
2hostname: bd0a0e0d-85a5-4af1-b66d-d0dea1e50bb8@1.worker-n2-com-f8c4bb956-vwsbv.gce-production-1
3version: deploy_2024.10.02-2-gc32b553 https://github.com/travis-ci/worker/tree/c32b553e81363378d09787f52103ea9bcadf253c
4instance: travis-job-c5c242a4-ae19-4cb6-8ce8-80cbd25c9e19 travis-ci-ubuntu-2004-1726220016-655c8cb5 (via amqp)
5startup: 5.798535161s
60.22s0.01s0.00s0.01s
system_info
7Build system information
8Build language: ruby
9Build dist: focal
10Build id: 273724706
11Job id: 629419200
12Runtime kernel version: 5.15.0-1068-gcp
13VM: default
14travis-build version: 6b157a1c
15Build image provisioning date and time
16Fri 13 Sep 2024 09:58:48 AM UTC
17Operating System Details
18Distributor ID: Ubuntu
19Description: Ubuntu 20.04.6 LTS
20Release: 20.04
21Codename: focal
22Systemd Version
23systemd 245 (245.4-4ubuntu3.23)
24Cookbooks Version
2539734fe https://github.com/travis-ci/travis-cookbooks/tree/39734fe
26git version
27git version 2.46.0
28bash version
29GNU bash, version 5.0.17(1)-release (x86_64-pc-linux-gnu)
30gcc version
31gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
32docker version
33Client:
34 Version: 24.0.7
35 API version: 1.43
36 Go version: go1.21.1
37 Git commit: 24.0.7-0ubuntu2~20.04.1
38 Built: Wed Mar 13 20:29:24 2024
39 OS/Arch: linux/amd64
40 Context: default
42Server:
43 Engine:
44 Version: 24.0.7
45 API version: 1.43 (minimum version 1.12)
46 Go version: go1.21.1
47 Git commit: 24.0.7-0ubuntu2~20.04.1
48 Built: Wed Mar 13 20:29:24 2024
49 OS/Arch: linux/amd64
50 Experimental: false
51 containerd:
52 Version: 1.7.12
53 GitCommit:
54 runc:
55 Version: 1.1.12-0ubuntu2~20.04.1
56 GitCommit:
57 docker-init:
58 Version: 0.19.0
59 GitCommit:
60clang version
61clang version 18.1.8
62jq version
63jq-1.7.1
64bats version
65Bats 1.11.0
66shellcheck version
670.10.0
68shfmt version
69v3.8.0
70ccache version
713.7.7
72cmake version
73cmake version 3.29.0
74heroku version
75heroku/9.2.1 linux-x64 node-v16.20.2
76imagemagick version
77Version: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
78md5deep version
794.4
80mercurial version
81version 6.5.2
82mysql version
83mysql Ver 8.0.39-0ubuntu0.20.04.1 for Linux on x86_64 ((Ubuntu))
84openssl version
85OpenSSL 1.1.1f 31 Mar 2020
86packer version
87Packer v1.11.2
88postgresql client version
89psql (PostgreSQL) 13.16 (Ubuntu 13.16-1.pgdg20.04+1)
90ragel version
91Ragel State Machine Compiler version 6.10 March 2017
92sudo version
931.8.31
94gzip version
95gzip 1.10
96zip version
97Zip 3.0
98vim version
99VIM - Vi IMproved 8.1 (2018 May 18, compiled Sep 04 2024 03:11:27)
100iptables version
101iptables v1.8.4 (legacy)
102curl version
103curl 7.68.0 (x86_64-pc-linux-gnu) libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3
104wget version
105GNU Wget 1.20.3 built on linux-gnu.
106rsync version
107rsync version 3.1.3 protocol version 31
108gimme version
109v1.5.4
110nvm version
1110.40.1
112perlbrew version
113/home/travis/perl5/perlbrew/bin/perlbrew - App::perlbrew/0.95
114phpenv version
115rbenv 1.3.0
116rvm version
117rvm 1.29.12 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]
118default ruby version
119ruby 3.3.5 (2024-09-03 revision ef084cc8f4) [x86_64-linux]
120default python version
121Python 3.7.17
122ElasticSearch version
1237.16.3
124Installed Firefox version
125firefox 99.0
126MongoDB version
127MongoDB 4.4.29
128PhantomJS version
1292.1.1
130Redis version
131redis-server 7.4.0
132Pre-installed Go versions
1331.23.0
134mvn version
135Apache Maven 3.9.4 (dfbb324ad4a7c8fb0bf182e6d91b0ae20e3d2dd9)
136gradle version
137Gradle 8.3!
138lein version
139Leiningen 2.11.2 on Java 11.0.21 OpenJDK 64-Bit Server VM
140Pre-installed Node.js versions
141v10.24.1
142v12.22.12
143v14.21.3
144v16.15
145v16.20.2
146v18.20.3
147v18.20.4
148v20.17.0
149v4.9.1
150v6.17.1
151v8.17.0
152phpenv versions
153 system
154 7.4
155* 7.4.6 (set by /home/travis/.phpenv/version)
156 hhvm-stable
157 hhvm
158composer --version
159Composer version 1.10.6 2020-05-06 10:28:10
160Pre-installed Ruby versions
161ruby-2.7.6
162ruby-3.3.5
1640.02s0.01s0.90s0.30s0.05s0.01s0.04s0.00s0.03s0.01s0.01s0.01s0.01s0.00s0.44sOK
1650.00s0.05s0.00s0.02s0.18s0.00s0.00s0.00s0.01s0.00s0.17s0.00s1.05s0.00s0.00s6.04s0.00s4.08s0.00s2.31s
docker_mtu_and_registry_mirrors
Docker
resolvconf
git.checkout
1660.01s0.54s$ git clone --depth=50 https://github.com/travis-ci/dpl.git travis-ci/dpl
167Cloning into 'travis-ci/dpl'...
168remote: Enumerating objects: 2346, done.
169remote: Counting objects: 100% (2346/2346), done.
170remote: Compressing objects: 100% (1352/1352), done.
171remote: Total 2346 (delta 1371), reused 1633 (delta 933), pack-reused 0 (from 0)
172Receiving objects: 100% (2346/2346), 690.15 KiB | 9.58 MiB/s, done.
173Resolving deltas: 100% (1371/1371), done.
174$ cd travis-ci/dpl
1750.28s$ git fetch origin +refs/pull/1296/merge: --depth=50
176remote: Enumerating objects: 147, done.
177remote: Counting objects: 100% (119/119), done.
178remote: Compressing objects: 100% (42/42), done.
179remote: Total 50 (delta 31), reused 17 (delta 3), pack-reused 0 (from 0)
180Unpacking objects: 100% (50/50), 7.99 KiB | 454.00 KiB/s, done.
181From https://github.com/travis-ci/dpl
182 * branch refs/pull/1296/merge -> FETCH_HEAD
183$ git checkout -qf FETCH_HEAD
1850.00s
186Encrypted environment variables have been removed for security reasons.
187See https://docs.travis-ci.com/user/pull-requests/#pull-requests-and-security-restrictions
rvm
1883.19s$ rvm get head
189Downloading https://get.rvm.io
190Downloading https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer.asc
191Verifying /home/travis/.rvm/archives/rvm-installer.asc
192gpg: Signature made Tue 21 Feb 2023 11:35:16 PM UTC
193gpg: using RSA key 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
194gpg: Good signature from "Piotr Kuczynski <piotr.kuczynski@gmail.com>" [unknown]
195gpg: WARNING: This key is not certified with a trusted signature!
196gpg: There is no indication that the signature belongs to the owner.
197Primary key fingerprint: 7D2B AF1C F37B 13E2 069D 6956 105B D0E7 3949 9BDB
198GPG verified '/home/travis/.rvm/archives/rvm-installer'
199Downloading https://github.com/rvm/rvm/archive/master.tar.gz
200Upgrading the RVM installation in /home/travis/.rvm/
201 RVM PATH line found in /home/travis/.mkshrc /home/travis/.profile /home/travis/.zshrc.
202 RVM PATH line not found for Bash, rerun this command with '--auto-dotfiles' flag to fix it.
203 RVM sourcing line found in /home/travis/.profile /home/travis/.bashrc /home/travis/.zlogin.
204Upgrade of RVM in /home/travis/.rvm/ is complete.
206Thanks for installing RVM 🙏
207Please consider donating to our open collective to help us maintain RVM.
209👉 Donate: https://opencollective.com/rvm/donate
212RVM reloaded!
2130.76s$ rvm use 3.3 --install --binary --fuzzy
214Using /home/travis/.rvm/gems/ruby-3.3.5
216$ export BUNDLE_GEMFILE=$PWD/Gemfile
cache.1
217Setting up build cache
218$ export CASHER_DIR=${TRAVIS_HOME}/.casher
2190.17s$ Installing caching utilities
2200.00s1.70sattempting to download cache archive
221fetching PR.1296/cache--linux-focal-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855--rvm-3.3--gemfile-Gemfile.tgz
222found cache
cache.bundler
2250.00s3.17sadding /home/travis/build/travis-ci/dpl/vendor/bundle to cache
226creating directory /home/travis/build/travis-ci/dpl/vendor/bundle
ruby.versions
227$ ruby --version
228ruby 3.3.5 (2024-09-03 revision ef084cc8f4) [x86_64-linux]
229$ rvm --version
230rvm 1.29.12-next (master) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]
231$ bundle --version
232Bundler version 2.5.16
233$ gem --version
2343.5.16
install.bundler
23628.90s$ bundle install --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle}
237[DEPRECATED] The `--path` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set path 'vendor/bundle'`, and stop using this flag
238Fetching https://github.com/travis-oss/fog-rackspace
239Fetching gem metadata from https://rubygems.org/........
240Resolving dependencies...
241Bundle complete! 40 Gemfile dependencies, 221 gems now installed.
242Bundled gems are installed into `./vendor/bundle`
24414.55s$ bundle exec rspec
245[Coveralls] Set up the SimpleCov formatter.
246[Coveralls] Using SimpleCov's default settings.
247/home/travis/build/travis-ci/dpl/vendor/bundle/ruby/3.3.0/gems/httpclient-2.8.3/lib/httpclient.rb:19: warning: mutex_m was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.4.0.
248You can add mutex_m to your Gemfile or gemspec to silence this warning.
249/home/travis/build/travis-ci/dpl/lib/dpl/providers/gcs.rb:3: warning: nkf was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.4.0.
250You can add nkf to your Gemfile or gemspec to silence this warning.
251/home/travis/build/travis-ci/dpl/vendor/bundle/ruby/3.3.0/gems/chef-18.6.2/lib/chef.rb:23: warning: syslog was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.4.0.
252You can add syslog to your Gemfile or gemspec to silence this warning.
253ffi-libarchive could not be loaded, libarchive is probably not installed on system, archive_file will not be available
254Run options: exclude {:skip=>true}
255..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead.
256.........................................................................................................................................................................................................................................................../home/travis/.rvm/rubies/ruby-3.3.5/lib/ruby/3.3.0/bundled_gems.rb:75: warning: getoptlong was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.4.0.
257You can add getoptlong to your Gemfile or gemspec to silence this warning.
258..........................................................................................................................................................................................................................................................................................................................................................................................................................................
260Finished in 11.71 seconds (files took 1.92 seconds to load)
2611155 examples, 0 failures
263[Coveralls] Submitting to https://coveralls.io/api/v1
264fatal: not a git repository (or any of the parent directories): .git
265fatal: not a git repository (or any of the parent directories): .git
266fatal: not a git repository (or any of the parent directories): .git
267fatal: not a git repository (or any of the parent directories): .git
268fatal: not a git repository (or any of the parent directories): .git
269fatal: not a git repository (or any of the parent directories): .git
270fatal: not a git repository (or any of the parent directories): .git
271fatal: not a git repository (or any of the parent directories): .git
272Coveralls encountered an exception:
273OpenSSL::SSL::SSLError
274SSL_connect returned=1 errno=0 peeraddr=172.67.161.98:443 state=error: no protocols available
275/home/travis/build/travis-ci/dpl/vendor/bundle/ruby/3.3.0/gems/net-protocol-0.2.2/lib/net/protocol.rb:46:in `connect_nonblock'
276/home/travis/build/travis-ci/dpl/vendor/bundle/ruby/3.3.0/gems/net-protocol-0.2.2/lib/net/protocol.rb:46:in `ssl_socket_connect'
277/home/travis/build/travis-ci/dpl/vendor/bundle/ruby/3.3.0/gems/net-http-0.6.0/lib/net/http.rb:1742:in `connect'
278/home/travis/build/travis-ci/dpl/vendor/bundle/ruby/3.3.0/gems/net-http-0.6.0/lib/net/http.rb:1642:in `do_start'
279/home/travis/build/travis-ci/dpl/vendor/bundle/ruby/3.3.0/gems/net-http-0.6.0/lib/net/http.rb:1631:in `start'
280/home/travis/build/travis-ci/dpl/vendor/bundle/ruby/3.3.0/gems/net-http-0.6.0/lib/net/http.rb:2375:in `request'
281/home/travis/build/travis-ci/dpl/vendor/bundle/ruby/3.3.0/gems/coveralls-0.8.23/lib/coveralls/api.rb:29:in `post_json'
282/home/travis/build/travis-ci/dpl/vendor/bundle/ruby/3.3.0/gems/coveralls-0.8.23/lib/coveralls/simplecov.rb:64:in `format'
283/home/travis/build/travis-ci/dpl/vendor/bundle/ruby/3.3.0/gems/simplecov-0.16.1/lib/simplecov/result.rb:48:in `format!'
284/home/travis/build/travis-ci/dpl/vendor/bundle/ruby/3.3.0/gems/simplecov-0.16.1/lib/simplecov/configuration.rb:182:in `block in at_exit'
285/home/travis/build/travis-ci/dpl/vendor/bundle/ruby/3.3.0/gems/simplecov-0.16.1/lib/simplecov.rb:200:in `run_exit_tasks!'
286/home/travis/build/travis-ci/dpl/vendor/bundle/ruby/3.3.0/gems/simplecov-0.16.1/lib/simplecov/defaults.rb:27:in `block in <top (required)>'
287The command "bundle exec rspec" exited with 0.
cache.2
288store build cache
289$ bundle clean
2900.00s5.58schanges detected (content changed, file is created, or file is deleted):\n/home/travis/build/travis-ci/dpl/vendor/bundle/ruby/3.3.0/bundler/gems/fog-rackspace-565e81d33d57/.git/index
291/home/travis/build/travis-ci/dpl/vendor/bundle/ruby/3.3.0/bundler/gems/fog-rackspace-565e81d33d57/.git/logs/HEAD\n
292changes detected, packing new archive
293gzip: warning: GZIP environment variable is deprecated; use an alias or script
294uploading PR.1296/cache--linux-focal-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855--rvm-3.3--gemfile-Gemfile.tgz
295cache uploaded
298Done. Your build exited with 0.
Top