Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
37 changes: 37 additions & 0 deletions .github/workflows/smart-proxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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'
Loading