diff --git a/.github/workflows/smart-proxy.yml b/.github/workflows/smart-proxy.yml index da22a08fd..a30323db6 100644 --- a/.github/workflows/smart-proxy.yml +++ b/.github/workflows/smart-proxy.yml @@ -69,12 +69,49 @@ jobs: - name: Run rake test run: bundle exec rake test + tests-on-windows: + name: "Test on Windows - Ruby ${{ matrix.ruby }}" + runs-on: windows-latest + needs: + - setup_matrix + defaults: + run: + shell: pwsh + strategy: + matrix: ${{ fromJson(needs.setup_matrix.outputs.matrix) }} + env: + BUNDLE_WITHOUT: "krb5 libvirt" + steps: + - name: Checkout this repo + uses: actions/checkout@v4 + - name: Set up Ruby (Windows) + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true + - name: Show Ruby env (sanity) + run: | + ruby -v + gem -v + ridk version + - name: Rake sanity + run: | + bundle exec rake -T + - name: Archive Gemfile.lock + uses: actions/upload-artifact@v4 + with: + name: Gemfile-windows-ruby-${{ matrix.ruby }}.lock + path: Gemfile.lock + - name: Run rake test + run: bundle exec rake test + result: if: always() name: Test suite runs-on: ubuntu-24.04 needs: - tests + - tests-on-windows steps: - name: Decide whether the needed jobs succeeded or failed uses: re-actors/alls-green@release/v1 diff --git a/Gemfile b/Gemfile index 8e9ed747c..c16004cc9 100644 --- a/Gemfile +++ b/Gemfile @@ -10,4 +10,4 @@ end # Changed from a default gem to a bundled gem in Ruby 3.4 # See: https://stdgems.org/new-in/3.4/ -gem 'syslog' if RUBY_VERSION >= '3.4' +gem 'syslog', '>= 0.3.0' if RUBY_VERSION >= '3.4'