version: 2.1 orbs: ruby: circleci/ruby@2.0.0 win: circleci/windows@5.0.0 commands: install_windows_requirements: description: "Install windows requirements" steps: - run: name: "Install MSYS2" command: choco install msys2 -y - run: name: "Install Ruby devkit" command: ridk install 2 3 bundle-install: description: "Install dependencies" steps: - run: name: Which bundler? command: ruby -v; bundle -v - run: name: Bundle install command: bundle install run-tests: description: "Run tests" steps: - run: name: Run tests command: bundle exec rake spec SPEC_OPTS="-fd" run-tests-flow: description: "Single flow for running tests" steps: - checkout - bundle-install - run-tests jobs: ruby_27: docker: - image: cimg/ruby:2.7-browsers steps: - run-tests-flow ruby_30: docker: - image: cimg/ruby:3.0-browsers steps: - run-tests-flow ruby_31: docker: - image: cimg/ruby:3.1-browsers steps: - run-tests-flow ruby_32: docker: - image: cimg/ruby:3.2-browsers steps: - run-tests-flow win_ruby: executor: name: win/default shell: powershell.exe steps: - install_windows_requirements - run: name: "Install bundler" shell: powershell.exe command: gem install bundler - run-tests-flow workflows: tests: jobs: - ruby_27 - ruby_30 - ruby_31 - ruby_32 - win_ruby