Skip to content

chore: Upload code coverage to CodeCov for the latest combination of … #9

chore: Upload code coverage to CodeCov for the latest combination of …

chore: Upload code coverage to CodeCov for the latest combination of … #9

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby_version }} / ActionView ${{ matrix.actionview_version }}
strategy:
matrix:
ruby_version: [ruby-head, '3.3', '3.2', '3.1']
actionview_version: ['7.1', '7.0', '6.1']
env:
ACTIONVIEW_VERSION: ${{ matrix.actionview_version }}
COVERAGE: true
steps:
- uses: actions/checkout@v4
- run: rm -f Gemfile.lock
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
bundler-cache: true
continue-on-error: ${{ matrix.ruby_version == 'ruby-head' }}
- run: bundle exec rake
continue-on-error: ${{ matrix.ruby_version == 'ruby-head' }}
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: svyatov/clsx-rails
# Only upload coverage for the latest Ruby and ActionView versions
if: ${{ matrix.ruby_version == '3.3' && matrix.actionview_version == '7.1' }

Check failure on line 38 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 38, Col: 11): The expression is not closed. An unescaped ${{ sequence was found, but the closing }} sequence was not found.