Skip to content

Commit d8db07b

Browse files
committed
Improve testing of ruby-head builds
1 parent 7bc20bb commit d8db07b

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed

Diff for: .github/workflows/build.yml

+16-4
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,22 @@ jobs:
9696
run: tar czf ruby-head-${{ matrix.os }}.tar.gz -C ~/.rubies ruby-head
9797

9898
# Test
99-
- run: ~/.rubies/ruby-head/bin/ruby --version
100-
- run: ~/.rubies/ruby-head/bin/gem --version
101-
- run: ~/.rubies/ruby-head/bin/rake --version
102-
- run: ~/.rubies/ruby-head/bin/ruby -ropen-uri -e 'puts open("https://rubygems.org/") { |f| f.read(1024) }'
99+
- run: echo "::add-path::$HOME/.rubies/ruby-head/bin"
100+
- uses: actions/checkout@v2
101+
with:
102+
path: test_files
103+
- run: mv test_files/Gemfile .
104+
- run: ruby --version
105+
- run: gem --version
106+
- run: rake --version
107+
- run: ruby -ropen-uri -e 'puts open("https://rubygems.org/") { |f| f.read(1024) }'
108+
- run: gem install json:2.2.0 --no-document
109+
- run: bundle --version
110+
- run: bundle install
111+
- run: bundle exec rake --version
112+
- name: Subprocess test
113+
run: ruby -e 'p RbConfig::CONFIG["CPPFLAGS"]; def Warning.warn(s); raise s; end; system RbConfig.ruby, "-e", "p :OK"'
114+
103115
- run: make test-spec MSPECOPT=-j
104116
- run: make test-all TESTS="-j8"
105117

Diff for: Gemfile

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Used for testing
2+
source 'https://rubygems.org'
3+
4+
gem "rake"
5+
gem "path"
6+
gem "json", "2.2.0"

0 commit comments

Comments
 (0)