Use Ruby head for Valgrind CI #750
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Liquid | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
entry: | |
- { ruby: '2.7', allowed-failure: false } | |
- { ruby: '3.0', allowed-failure: false } | |
- { ruby: '3.1', allowed-failure: false } | |
- { ruby: ruby-head, allowed-failure: true } | |
name: test (${{ matrix.entry.ruby }}) | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.entry.ruby }} | |
- uses: actions/cache@v1 | |
with: | |
path: vendor/bundle | |
key: ${{ runner.os }}-gems-${{ hashFiles('Gemfile') }} | |
restore-keys: ${{ runner.os }}-gems- | |
- run: bundle install --jobs=3 --retry=3 --path=vendor/bundle | |
- run: bundle exec rake | |
continue-on-error: ${{ matrix.entry.allowed-failure }} | |
env: | |
LIQUID_C_PEDANTIC: 'true' | |
- run: bundle exec rubocop | |
valgrind: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
# We have to use Ruby head until Ruby 3.3 is released due to https://bugs.ruby-lang.org/issues/19436 | |
ruby-version: ruby-head | |
- run: sudo apt-get install -y valgrind | |
- uses: actions/cache@v1 | |
with: | |
path: vendor/bundle | |
key: ${{ runner.os }}-gems-${{ hashFiles('Gemfile') }} | |
restore-keys: ${{ runner.os }}-gems- | |
- run: bundle install --jobs=3 --retry=3 --path=vendor/bundle | |
- run: bundle exec rake test:valgrind |