Skip to content

Bump ruby/setup-ruby from 1.202.0 to 1.221.0 #455

Bump ruby/setup-ruby from 1.202.0 to 1.221.0

Bump ruby/setup-ruby from 1.202.0 to 1.221.0 #455

Workflow file for this run

name: Ruby 🔻💎🔻 Tests 🦂
on:
push:
branches-ignore:
- 'main'
paths:
- 'ruby/**'
- '!ruby/**.md'
- '!ruby/.vscode/**'
- '.github/workflows/ruby-*'
pull_request:
branches:
- 'main'
paths:
- 'ruby/**'
- '!ruby/**.md'
- '!ruby/.vscode/**'
- '.github/workflows/ruby-*'
schedule: # 9AM on the 15th
- cron: 0 22 14 1,2,3,10,11,12 * # AEDT Months
- cron: 0 23 14 4,5,6,7,8,9 * # AEST Months
workflow_call:
permissions: {}
defaults:
run:
shell: bash
working-directory: ruby
jobs:
quick-test:
name: Ruby 🔻💎🔻 Quick Test 🦂
if: ${{ github.event_name == 'push' && !(github.event.ref == 'refs/heads/main') }}
runs-on: ubuntu-latest
steps:
- name: 🏁 Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: 🔻💎🔻 Set up Ruby
uses: ruby/setup-ruby@32110d4e311bd8996b2a82bf2a43b714ccc91777 # v1.221.0
with:
ruby-version: '2.7'
bundler-cache: true
- name: 🧱 Install build dependencies
run: make setup
- name: 🦂 Test
run: make test
full-test:
name: Ruby 🔻💎🔻 Full Test 🦂
if: >-
${{ github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' ||
(github.event_name == 'push' && github.event.ref == 'refs/heads/main') }}
runs-on: '${{ matrix.os }}'
strategy:
fail-fast: false
matrix:
version: ['2.7.0', '3.0', '3.1']
os: [ubuntu-latest, macOS-12, windows-latest] # # < maybe.
steps:
- name: 🏁 Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: 🔻💎🔻 Set up Ruby ${{ matrix.version }}
uses: ruby/setup-ruby@32110d4e311bd8996b2a82bf2a43b714ccc91777 # v1.221.0
with:
ruby-version: ${{ matrix.version }}
bundler-cache: true
- name: 🧱 Install build dependencies
run: make setup
- name: 🦂 Test
run: make test
codeql:
name: Ruby 🔻💎🔻 CodeQL 🛡👨‍💻🛡
if: >-
${{ github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' ||
(github.event_name == 'push' && github.event.ref == 'refs/heads/main') }}
permissions:
actions: read
contents: read
security-events: write
uses: ./.github/workflows/github-codeql.yaml
with:
language: 'ruby'
docs:
name: Ruby 🔻💎🔻 Docs 📄 Quick Test 🦂
runs-on: ubuntu-latest
steps:
- name: 🏁 Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: 🔻💎🔻 Set up Ruby
uses: ruby/setup-ruby@32110d4e311bd8996b2a82bf2a43b714ccc91777 # v1.221.0
with:
ruby-version: '2.7'
bundler-cache: true
- name: 🧱 Install build dependencies
run: make setup
- name: 📄 Docs
run: make docs