From 63190648f41a46e58a9fb69be24545e18a4a0099 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Sun, 5 Apr 2020 14:44:43 +0200 Subject: [PATCH] Add some spacing in workflow --- .github/workflows/test.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 227c572..e271ba4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,7 +14,7 @@ jobs: fail-fast: false matrix: os: [ ubuntu, macos, windows ] - # Use various version syntaxes here for testing + # Use various version syntax here for testing ruby: [ 2.2, 2.3, 2.4, 2.5, 2.6.6, 2.7, ruby-head, jruby-9.1, jruby, jruby-head, truffleruby, truffleruby-head ] include: - { os: ubuntu, ruby: rubinius } @@ -28,10 +28,12 @@ jobs: runs-on: ${{ matrix.os }}-latest steps: - uses: actions/checkout@v2 + - uses: ./ with: ruby-version: ${{ matrix.ruby }} - run: ruby -v + - name: build compiler run: | ruby -e "puts 'build compiler: ' + RbConfig::CONFIG.fetch('CC_VERSION_MESSAGE', 'unknown').lines.first" @@ -47,17 +49,20 @@ jobs: echo 'ridk is unavailable' } } + - name: Subprocess test run: ruby test_subprocess.rb - name: OpenSSL version run: ruby -ropenssl -e 'puts OpenSSL::OPENSSL_LIBRARY_VERSION' - name: OpenSSL test run: ruby -ropen-uri -e 'puts open(%{https://rubygems.org/}) { |f| f.read(1024) }' + - name: C extension test run: gem install json:2.2.0 --no-document - run: bundle --version - run: bundle install - run: bundle exec rake --version + - name: which ruby, rake if: startsWith(matrix.os, 'windows') == false run: which -a ruby rake @@ -73,6 +78,7 @@ jobs: echo '' } + lint: runs-on: ubuntu-latest steps: