Skip to content

Merge pull request #690 from Homebrew/dependabot/github_actions/ruby/… #1178

Merge pull request #690 from Homebrew/dependabot/github_actions/ruby/…

Merge pull request #690 from Homebrew/dependabot/github_actions/ruby/… #1178

Workflow file for this run

name: CI
on:
push:
branches: master
pull_request:
jobs:
tests:
strategy:
matrix:
platform: ["ubuntu-latest", "macos-latest"]
ruby: ["2.7", "3.0", "3.1", "3.2", "3.3"]
runs-on: ${{ matrix.platform }}
steps:
- name: Set up Git repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Set up Ruby
uses: ruby/setup-ruby@a6b46b8a08edb18935835849f2a17072d5cc8c73 # v1.192.0
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: bundle exec rake
- name: Run RuboCop
run: bundle exec rubocop -D lib/
- name: Upload coverage results
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
with:
files: coverage/coverage.xml
disable_search: true
token: ${{ secrets.CODECOV_TOKEN }}