Skip to content

build(deps): bump actions/checkout from 4.2.1 to 4.2.2 (#7) #132

build(deps): bump actions/checkout from 4.2.1 to 4.2.2 (#7)

build(deps): bump actions/checkout from 4.2.1 to 4.2.2 (#7) #132

Workflow file for this run

name: Testing on Ubuntu
on: [push, pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
ruby-version: ['3.3', '3.2', '3.1', '3.0', '2.7']
os: [ubuntu-latest]
experimental: [false]
include:
- ruby-version: head
os: ubuntu-latest
experimental: true
# FIXME: on GitHub action, when cpufreq is not available by default
# capability: [true, false]
capability: [false]
name: Ruby ${{ matrix.ruby-version }} capability ${{ matrix.capability }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Ruby
uses: ruby/setup-ruby@7d3497fd78c07c0d84ebafa58d8dac60cd1f0763 # v1.199.0
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Install dependencies
run: |
sudo apt update
sudo apt -V install libcap-ng-dev
gem install bundler -v 2.2.27
bundle _2.2.27_ install
- name: setup linux capability (cap_dac_read_search=+eip)
run: sudo setcap cap_dac_read_search=+eip $(command -v ruby)
if: ${{ matrix.capability }}
- name: show linux capability
run: sudo getcap $(command -v ruby)
- name: Run tests
run: bundle exec rake test