Skip to content

Update dependency ruby to v4.0.6 (#1050) #94

Update dependency ruby to v4.0.6 (#1050)

Update dependency ruby to v4.0.6 (#1050) #94

Workflow file for this run

# This workflow will download a prebuilt Ruby version, install dependencies and
# run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
name: CI
permissions: {}
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '16 4 12 * *'
env:
CUCUMBER_PUBLISH_QUIET: true
RUBYOPTS: "--disable-did-you-mean"
JRUBY_OPTS: "--dev"
jobs:
test-ubuntu:
runs-on: ubuntu-latest
strategy:
matrix:
# - We should test with the latest Cucumber that is supported for each
# version of Ruby, and the version below it if supported
# - We should test with each Cucumber version supported by Aruba at
# least once
# - We explicitly test with upcoming RSpec 4.0 at least once
#
# This should ensure a reasonable upgrade path through tested
# combinations, provided users don't let one of their Cucumber, RSpec
# and Ruby versions stay behind while updating the others.
#
# Cucumber | Minimum Ruby Version
# ------------------------------------
# Cucumber 11 | Ruby 3.2
#
ruby: ["3.2", "3.3", "3.4", "jruby-10.0", "4.0"]
appraisal: [cucumber_11]
include:
- ruby: "4.0"
appraisal: rspec_4
env:
BUNDLE_GEMFILE: gemfiles/${{ matrix.appraisal }}.gemfile
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- name: Set up Ruby
uses: ruby/setup-ruby@8e41b362d2589a22a44c1cfa214b3c83052c195b # v1.318.0
with:
ruby-version: ${{ matrix.ruby }}
bundler: latest
bundler-cache: true
- name: Run specs
run: bundle exec rake spec
- name: Run cukes
run: bundle exec rake cucumber
test-macos:
strategy:
fail-fast: false
matrix:
# This will automatically pick the latest supported version of Cucumber
# for each Ruby version
ruby: ["3.2", "3.3", "3.4", "4.0"]
runs-on: macos-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- name: Set up Ruby
uses: ruby/setup-ruby@8e41b362d2589a22a44c1cfa214b3c83052c195b # v1.318.0
with:
ruby-version: ${{ matrix.ruby }}
bundler: latest
bundler-cache: true
- name: Run specs
run: bundle exec rake spec
- name: Run cukes
run: bundle exec rake cucumber
test-windows:
strategy:
fail-fast: false
matrix:
# This will automatically pick the latest supported version of Cucumber
# for each Ruby version
ruby: ["3.2", "3.3", "3.4", "4.0"]
runs-on: windows-latest
steps:
- name: git config autocrlf
run: git config --global core.autocrlf false
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- name: Set up Ruby
uses: ruby/setup-ruby@8e41b362d2589a22a44c1cfa214b3c83052c195b # v1.318.0
with:
ruby-version: ${{ matrix.ruby }}
bundler: latest
bundler-cache: true
- name: Run specs
run: bundle exec rake spec
- name: Run cukes (1)
run: bundle exec cucumber features/01_getting_started_with_aruba/
# - name: Run cukes (2)
# run: bundle exec cucumber features/02_configure_aruba/
# - name: Run cukes (3)
# run: bundle exec cucumber features/03_testing_frameworks/
# - name: Run cukes (4)
# run: bundle exec cucumber features/04_aruba_api/
# - name: Run cukes (5)
# run: bundle exec cucumber features/05_use_rspec_matchers/
# - name: Run cukes (6)
# run: bundle exec cucumber features/06_use_aruba_cli/
# - name: Run cukes (8)
# run: bundle exec cucumber features/08_other/
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- name: Set up Ruby
uses: ruby/setup-ruby@8e41b362d2589a22a44c1cfa214b3c83052c195b # v1.318.0
with:
ruby-version: "4.0.6"
bundler-cache: true
- name: Install and run license_finder
run: |
gem install license_finder
license_finder
- name: Run linters
run: bundle exec rake lint