Skip to content

Merge pull request #14 from MillionSend/ci/pin-ubuntu-24.04 #45

Merge pull request #14 from MillionSend/ci/pin-ubuntu-24.04

Merge pull request #14 from MillionSend/ci/pin-ubuntu-24.04 #45

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
test:
# setup-ruby has no Ruby 3.0 or 3.1 builds for ubuntu-26.04, and the gem
# still supports both (required_ruby_version >= 3.0).
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
ruby: ["3.0", "3.1", "3.2", "3.3"]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: ruby/setup-ruby@824c0e29fdfc7d689c191c27acc969d2d04b7dd8 # v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rspec
- run: gem build millionsend.gemspec
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: ruby/setup-ruby@824c0e29fdfc7d689c191c27acc969d2d04b7dd8 # v1.331.0
with:
ruby-version: "3.3"
bundler-cache: true
- run: bundle exec rubocop