Skip to content

ci: use ruby-versions to keep up-to-date (#5385) #1700

ci: use ruby-versions to keep up-to-date (#5385)

ci: use ruby-versions to keep up-to-date (#5385) #1700

Workflow file for this run

name: Test
on:
push:
branches: [master]
paths-ignore:
- '*.md'
- 'lib/fluent/version.rb'
pull_request:
branches: [master]
paths-ignore:
- '*.md'
- 'lib/fluent/version.rb'
workflow_dispatch:
concurrency:
group: ${{ github.head_ref || github.sha }}-${{ github.workflow }}
cancel-in-progress: true
permissions: read-all
jobs:
ruby-versions:
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
with:
engine: cruby
min_version: 3.2
test:
needs: ruby-versions
runs-on: ${{ matrix.os }}
continue-on-error: false
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest', 'windows-11-arm']
ruby-version: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
exclude:
- ruby-version: head
- os: 'windows-11-arm'
ruby-version: '3.3'
- os: 'windows-11-arm'
ruby-version: '3.2'
env:
RUBYOPT: "--disable-frozen_string_literal"
name: Ruby ${{ matrix.ruby-version }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Ruby
uses: ruby/setup-ruby@afeafc3d1ab54a631816aba4c914a0081c12ff2f # v1.310.0
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Install addons
if: ${{ matrix.os == 'ubuntu-latest' }}
run: sudo apt-get install libgmp3-dev libcap-ng-dev
- name: Install dependencies
run: bundle install
- name: Run tests
run: bundle exec rake test TESTOPTS="-v --report-slow-tests --no-show-detail-immediately"
test-windows-service:
needs: ruby-versions
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
ruby-version: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
exclude:
- ruby-version: head
name: Windows service (Ruby ${{ matrix.ruby-version }})
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Ruby
uses: ruby/setup-ruby@afeafc3d1ab54a631816aba4c914a0081c12ff2f # v1.310.0
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Install dependencies
run: |
bundle install
rake install
- name: Run tests
run: test\scripts\windows_service_test.ps1