Skip to content

Synchronize shared configuration #1343

Synchronize shared configuration

Synchronize shared configuration #1343

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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Set up Ruby
uses: ruby/setup-ruby@401c19e14f474b54450cd3905bb8b86e2c8509cf # v1.204.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@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2
with:
files: coverage/coverage.xml
disable_search: true
token: ${{ secrets.CODECOV_TOKEN }}