Skip to content

work around rubocop shortcomings #23

work around rubocop shortcomings

work around rubocop shortcomings #23

Workflow file for this run

name: Ruby
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: macos-latest
name: Ruby ${{ matrix.ruby }}
strategy:
matrix:
ruby:
- '2.7' # EOL: 2023-03-31
- '3.0' # EOL: 2024-03-31
- '3.1' # EOL: 2025-03-31
- '3.2' # EOL: 2026-03-31
- '3.3' # EOL: 2027-03-31
# see supported ruby release schedule at https://www.ruby-lang.org/en/downloads/branches/
steps:
- uses: actions/checkout@v4
with:
repository: getargv/getargv
path: getargv
token: ${{ secrets.GH_PAT }}
- name: Build libgetargv
run: make install_dylib
working-directory: getargv
- uses: actions/checkout@v4
with:
path: getargv_ruby
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
working-directory: getargv_ruby
- name: Create .ruby-version file
run: echo ${{ matrix.ruby }} > .ruby_version
working-directory: getargv_ruby
- name: Run the default task
run: bundle exec rake
working-directory: getargv_ruby