Skip to content

Commit

Permalink
chore: update client spec to 5.1.9 and include a windows runner
Browse files Browse the repository at this point in the history
  • Loading branch information
sighphyre committed Jan 8, 2025
1 parent 91a18ba commit 0f7f011
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,13 @@ jobs:
run: bundle install
- name: Get test project semver
id: get_semver
shell: bash
run: |
semver=$(ruby echo_client_spec_version.rb)
echo "::set-output name=semver::$semver"
- name: Download test cases
run: git clone --depth 5 --branch v${{ steps.get_semver.outputs.semver }} https://github.com/Unleash/client-specification.git client-specification
shell: bash
- name: Run tests
run: bundle exec rake
env:
Expand Down
3 changes: 2 additions & 1 deletion spec/unleash/client_specification_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@

JSON.parse(File.read(SPECIFICATION_PATH + '/index.json')).each do |test_file|
describe "for #{test_file}" do
current_test_set = JSON.parse(File.read(SPECIFICATION_PATH + '/' + test_file))
## Encoding is set in this read purely for JRuby. Don't take this out, it'll work locally and then fail on CI
current_test_set = JSON.parse(File.read(SPECIFICATION_PATH + '/' + test_file, encoding: 'utf-8'))
context "with #{current_test_set.fetch('name')} " do
tests = current_test_set.fetch('tests', [])
tests.each do |test|
Expand Down
2 changes: 1 addition & 1 deletion unleash-client.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
spec.require_paths = ["lib"]
spec.required_ruby_version = ">= 2.7"

spec.add_dependency "yggdrasil-engine", "~> 0.0.9"
spec.add_dependency "yggdrasil-engine", "~> 1.0.1"

spec.add_development_dependency "bundler", "~> 2.1"
spec.add_development_dependency "rake", "~> 12.3"
Expand Down

0 comments on commit 0f7f011

Please sign in to comment.