Skip to content

Bump ruby/setup-ruby from 1.196.0 to 1.199.0 #222

Bump ruby/setup-ruby from 1.196.0 to 1.199.0

Bump ruby/setup-ruby from 1.196.0 to 1.199.0 #222

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 Test
on:
schedule:
- cron: '0 0 * * 5'
push:
branches: [main]
pull_request:
types: [opened, synchronize]
branches: ['*']
workflow_dispatch:
permissions:
contents: read
jobs:
test:
permissions:
checks: write # for coverallsapp/github-action to create new checks
contents: read # for actions/checkout to fetch code
strategy:
fail-fast: false
matrix:
os: [ubuntu, macos, windows]
ruby: [3.1, 3.2, 3.3]
runs-on: ${{ matrix.os }}-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: Set up Ruby
uses: ruby/setup-ruby@7d3497fd78c07c0d84ebafa58d8dac60cd1f0763 # v1.199.0
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
run: bundle exec rake
- name: Build Yard documentation
run: bundle exec rake yard
- name: Report to Coveralls
uses: coverallsapp/github-action@643bc377ffa44ace6394b2b5d0d3950076de9f63 # v2.3.0
with:
github-token: ${{ secrets.github_token }}
flag-name: test-${{ matrix.os }}-${{ matrix.ruby }}
parallel: true
finish:
permissions:
checks: write # for coverallsapp/github-action to create new checks
needs: test
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit
- name: Report completion to Coveralls
uses: coverallsapp/github-action@643bc377ffa44ace6394b2b5d0d3950076de9f63 # v2.3.0
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true