From fe1567653a5be970504a5f8c726d93c94a0ec965 Mon Sep 17 00:00:00 2001 From: Alex Kubacki Date: Wed, 3 Jul 2024 15:19:58 -0600 Subject: [PATCH] Fix tmpdir --- .github/workflows/test.yml | 19 ++++++++++++++++--- .travis.yml | 10 ---------- spec/spawn_passthrough_spec.rb | 1 + 3 files changed, 17 insertions(+), 13 deletions(-) delete mode 100644 .travis.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9e06fcd..fdb5a60 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,8 +17,7 @@ jobs: strategy: fail-fast: false matrix: - RUBY_VERSION: ["2.0", "2.1", "2.2", "2.3"] - DYNAMIC_UNO_RUBY_VERSION: ["3.0"] + RUBY_VERSION: ["2.0", "2.1", "2.2", "2.3", "3.0"] steps: - name: Check out code uses: actions/checkout@v4 @@ -28,7 +27,21 @@ jobs: with: ruby-version: ${{ matrix.RUBY_VERSION }} bundler-cache: true - bundler-version: 1.13.6 + bundler: 1.13.6 - name: Run Tests run: bundle exec rake + + results: + if: ${{ always() }} + runs-on: ubuntu-latest + name: Final Results + needs: [test] + steps: + - run: exit 1 + # see https://stackoverflow.com/a/67532120/4907315 + if: >- + ${{ + contains(needs.*.result, 'failure') + || contains(needs.*.result, 'cancelled') + }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 026569a..0000000 --- a/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -sudo: false -language: ruby - -rvm: - - "2.0" - - "2.1" - - "2.2" - - "2.3" - -before_install: gem install bundler -v 1.13.6 diff --git a/spec/spawn_passthrough_spec.rb b/spec/spawn_passthrough_spec.rb index 9a08c2e..f2c6905 100644 --- a/spec/spawn_passthrough_spec.rb +++ b/spec/spawn_passthrough_spec.rb @@ -1,4 +1,5 @@ require 'spec_helper' +require 'tmpdir' describe SpawnPassthrough do it 'has a version number' do