Skip to content

Added support for annotate_rendered_view_with_filenames #163

Added support for annotate_rendered_view_with_filenames

Added support for annotate_rendered_view_with_filenames #163

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
name: Ruby
on: [push, pull_request]
jobs:
test:
name: Ruby ${{ matrix.ruby }} - ${{ matrix.gemfile }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: [3.2, 3.1, '3.0', 2.7]
gemfile:
- Gemfile
- gemfiles/Gemfile-rails-6-0
- gemfiles/Gemfile-rails-6-1
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
run: bundle exec rake
memcheck:
name: Memcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
bundler-cache: true
- name: Install Valgrind
run: sudo apt-get install valgrind
- name: Run tests
run: bundle exec rake test:valgrind
lint:
runs-on: ubuntu-latest
name: Lint
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
bundler-cache: true
- name: Run style checks
run: bundle exec rubocop
buildall:
if: ${{ always() }}
runs-on: ubuntu-latest
name: Build (matrix)
needs: [lint, test]
steps:
- name: Check build matrix status
if: ${{ needs.test.result != 'success' || needs.lint.result != 'success' }}
run: exit 1