Skip to content

Commit 82f7b43

Browse files
committed
Show the built version
1 parent 7f12b05 commit 82f7b43

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ jobs:
3838
ruby-version: ${{ matrix.ruby }}
3939
rubygems: ${{ matrix.ruby < '2.7' && '3.4.22' || '' }}
4040
bundler-cache: true
41+
- name: Version
42+
run: |
43+
ruby -v -retc -e "puts Etc::VERSION if Etc.const_defined?('VERSION')"
4144
- name: Run test
4245
run: bundle exec rake compile test
4346
- id: fetch
@@ -50,6 +53,12 @@ jobs:
5053
set +x
5154
shell: bash
5255
if: ${{ matrix.ruby == needs.ruby-versions.outputs.latest }}
56+
- name: Built Version
57+
run: |
58+
$:.unshift(File.expand_path("lib/#{RUBY_VERSION}/#{Gem::Platform.local}"))
59+
require "etc"
60+
puts Etc::VERSION if Etc.const_defined?('VERSION')
61+
shell: ruby {0}
5362
- id: build
5463
run: |
5564
bundle exec rake build

0 commit comments

Comments
 (0)