Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/smart-proxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,47 @@ 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"
Comment on lines +82 to +83
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#884 may be a better way to disable installing the gems depending on the platform. Also makes the real deployment easier.

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

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
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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'