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.2 passed

  • Ran for
AMD64
Ruby: 3.2
Git
Raw log
Scroll to End of Log
0.21s0.12s0.00s0.06s0.00s
worker_info
1Worker information
2hostname: 26468f74-3cc4-4832-a50f-6d4b9c5c78d9@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-b9ae22e7-30d9-4584-a0f6-3e8178f7b847 travis-ci-ubuntu-2004-1726220016-655c8cb5 (via amqp)
5startup: 5.633101751s
60.22s0.01s0.00s0.01s
system_info
7Build system information
8Build language: ruby
9Build dist: focal
10Build id: 273724706
11Job id: 629419199
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.75s0.30s0.05s0.01s0.04s0.00s0.03s0.01s0.01s0.01s0.01s0.00s0.35sOK
1650.00s0.03s0.00s0.01s0.13s0.00s0.00s0.00s0.01s0.00s0.17s0.00s1.12s0.00s0.00s6.04s0.00s4.05s0.00s2.27s
docker_mtu_and_registry_mirrors
Docker
resolvconf
git.checkout
1660.01s0.63s$ 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% (1354/1354), done.
171remote: Total 2346 (delta 1370), reused 1631 (delta 931), pack-reused 0 (from 0)
172Receiving objects: 100% (2346/2346), 691.46 KiB | 7.86 MiB/s, done.
173Resolving deltas: 100% (1370/1370), done.
174$ cd travis-ci/dpl
1750.35s$ 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 | 481.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.02s$ 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!
21317.20s$ rvm use 3.2 --install --binary --fuzzy
214curl: (22) The requested URL returned error: 404
215Required ruby-3.2.5 is not installed - installing.
216curl: (22) The requested URL returned error: 404
217Searching for binary rubies, this might take some time.
218Found remote file https://storage.googleapis.com/travis-ci-language-archives/ruby/binaries/ubuntu/20.04/x86_64/ruby-3.2.5.tar.bz2
219Checking requirements for ubuntu.
220Requirements installation successful.
221ruby-3.2.5 - #configure
222ruby-3.2.5 - #download
223 % Total % Received % Xferd Average Speed Time Time Time Current
224 Dload Upload Total Spent Left Speed
225100 32.2M 100 32.2M 0 0 84.0M 0 --:--:-- --:--:-- --:--:-- 83.8M
226No checksum for downloaded archive, recording checksum in user configuration.
227ruby-3.2.5 - #validate archive
228ruby-3.2.5 - #extract
229ruby-3.2.5 - #validate binary
230ruby-3.2.5 - #setup
231ruby-3.2.5 - #gemset created /home/travis/.rvm/gems/ruby-3.2.5@global
232ruby-3.2.5 - #importing gemset /home/travis/.rvm/gemsets/global.gems..................................
233ruby-3.2.5 - #generating global wrappers........
234ruby-3.2.5 - #uninstalling gem rubygems-bundler-1.4.5.
235ruby-3.2.5 - #gemset created /home/travis/.rvm/gems/ruby-3.2.5
236ruby-3.2.5 - #importing gemset /home/travis/.rvm/gemsets/default.gems..............
237ruby-3.2.5 - #generating default wrappers........
238Using /home/travis/.rvm/gems/ruby-3.2.5
240$ export BUNDLE_GEMFILE=$PWD/Gemfile
cache.1
241Setting up build cache
242$ export CASHER_DIR=${TRAVIS_HOME}/.casher
2430.17s$ Installing caching utilities
2440.00s1.59sattempting to download cache archive
245fetching PR.1296/cache--linux-focal-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855--rvm-3.2--gemfile-Gemfile.tgz
246found cache
cache.bundler
2490.00s3.12sadding /home/travis/build/travis-ci/dpl/vendor/bundle to cache
250creating directory /home/travis/build/travis-ci/dpl/vendor/bundle
ruby.versions
251$ ruby --version
252ruby 3.2.5 (2024-07-26 revision 31d0f1a2e7) [x86_64-linux]
253$ rvm --version
254rvm 1.29.12-next (master) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]
255$ bundle --version
256Bundler version 2.4.19
257$ gem --version
2583.4.19
install.bundler
26024.36s$ bundle install --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle}
261[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 --local path 'vendor/bundle'`, and stop using this flag
262Fetching https://github.com/travis-oss/fog-rackspace
263Fetching gem metadata from https://rubygems.org/........
264Resolving dependencies...
265Bundle complete! 40 Gemfile dependencies, 221 gems now installed.
266Bundled gems are installed into `./vendor/bundle`
26813.24s$ bundle exec rspec
269[Coveralls] Set up the SimpleCov formatter.
270[Coveralls] Using SimpleCov's default settings.
271ffi-libarchive could not be loaded, libarchive is probably not installed on system, archive_file will not be available
272Run options: exclude {:skip=>true}
273..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead.
274.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
276Finished in 11 seconds (files took 1.56 seconds to load)
2771155 examples, 0 failures
279[Coveralls] Submitting to https://coveralls.io/api/v1
280fatal: not a git repository (or any of the parent directories): .git
281fatal: not a git repository (or any of the parent directories): .git
282fatal: not a git repository (or any of the parent directories): .git
283fatal: not a git repository (or any of the parent directories): .git
284fatal: not a git repository (or any of the parent directories): .git
285fatal: not a git repository (or any of the parent directories): .git
286fatal: not a git repository (or any of the parent directories): .git
287fatal: not a git repository (or any of the parent directories): .git
288Coveralls encountered an exception:
289OpenSSL::SSL::SSLError
290SSL_connect returned=1 errno=0 peeraddr=172.67.161.98:443 state=error: no protocols available
291/home/travis/build/travis-ci/dpl/vendor/bundle/ruby/3.2.0/gems/net-protocol-0.2.2/lib/net/protocol.rb:46:in `connect_nonblock'
292/home/travis/build/travis-ci/dpl/vendor/bundle/ruby/3.2.0/gems/net-protocol-0.2.2/lib/net/protocol.rb:46:in `ssl_socket_connect'
293/home/travis/build/travis-ci/dpl/vendor/bundle/ruby/3.2.0/gems/net-http-0.6.0/lib/net/http.rb:1742:in `connect'
294/home/travis/build/travis-ci/dpl/vendor/bundle/ruby/3.2.0/gems/net-http-0.6.0/lib/net/http.rb:1642:in `do_start'
295/home/travis/build/travis-ci/dpl/vendor/bundle/ruby/3.2.0/gems/net-http-0.6.0/lib/net/http.rb:1631:in `start'
296/home/travis/build/travis-ci/dpl/vendor/bundle/ruby/3.2.0/gems/net-http-0.6.0/lib/net/http.rb:2375:in `request'
297/home/travis/build/travis-ci/dpl/vendor/bundle/ruby/3.2.0/gems/coveralls-0.8.23/lib/coveralls/api.rb:29:in `post_json'
298/home/travis/build/travis-ci/dpl/vendor/bundle/ruby/3.2.0/gems/coveralls-0.8.23/lib/coveralls/simplecov.rb:64:in `format'
299/home/travis/build/travis-ci/dpl/vendor/bundle/ruby/3.2.0/gems/simplecov-0.16.1/lib/simplecov/result.rb:48:in `format!'
300/home/travis/build/travis-ci/dpl/vendor/bundle/ruby/3.2.0/gems/simplecov-0.16.1/lib/simplecov/configuration.rb:182:in `block in at_exit'
301/home/travis/build/travis-ci/dpl/vendor/bundle/ruby/3.2.0/gems/simplecov-0.16.1/lib/simplecov.rb:200:in `run_exit_tasks!'
302/home/travis/build/travis-ci/dpl/vendor/bundle/ruby/3.2.0/gems/simplecov-0.16.1/lib/simplecov/defaults.rb:27:in `block in <top (required)>'
303The command "bundle exec rspec" exited with 0.
cache.2
304store build cache
305$ bundle clean
3060.00s5.25schanges detected (content changed, file is created, or file is deleted):\n/home/travis/build/travis-ci/dpl/vendor/bundle/ruby/3.2.0/bundler/gems/fog-rackspace-565e81d33d57/.git/index
307/home/travis/build/travis-ci/dpl/vendor/bundle/ruby/3.2.0/bundler/gems/fog-rackspace-565e81d33d57/.git/logs/HEAD\n
308changes detected, packing new archive
309gzip: warning: GZIP environment variable is deprecated; use an alias or script
310uploading PR.1296/cache--linux-focal-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855--rvm-3.2--gemfile-Gemfile.tgz
311cache uploaded
314Done. Your build exited with 0.
Top