Skip to content

chore(main): release functions_framework 1.4.2 #569

chore(main): release functions_framework 1.4.2

chore(main): release functions_framework 1.4.2 #569

Workflow file for this run

name: Ruby Unit CI
on:
pull_request:
branches:
- main
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
jobs:
unit-test:
if: ${{ github.repository == 'GoogleCloudPlatform/functions-framework-ruby' }}
strategy:
matrix:
os: [ubuntu-latest]
ruby: ['2.6', '2.7', '3.0', '3.1', '3.2', '3.3']
flags: ["--only --test-unit"]
include:
- os: ubuntu-latest
ruby: jruby
flags: "--only --test-unit"
- os: ubuntu-latest
ruby: truffleruby
flags: "--only --test-unit"
- os: macos-latest
ruby: "3.0"
flags: "--only --test-unit"
- os: windows-latest
ruby: "3.0"
flags: "--only --test-unit"
- os: ubuntu-latest
ruby: "3.0"
flags: "--only --test-yardoc --test-build --test-examples"
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
github.com:443
index.rubygems.org:443
objects.githubusercontent.com:443
rubygems.org:443
- name: Checkout repo
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Install Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@f321cf5a4d1533575411f8752cf25b86478b0442 # v1.193.0
with:
ruby-version: "${{ matrix.ruby }}"
bundler-cache: true
- name: Install toys
run: gem install --no-document toys
- name: Test ${{ matrix.flags }}
shell: bash
env:
MT_COMPAT: "true"
run: toys ci ${{ matrix.flags }}