diff --git a/.github/workflows/liquid.yml b/.github/workflows/liquid.yml index 4fcc6200..ccc3c0d1 100644 --- a/.github/workflows/liquid.yml +++ b/.github/workflows/liquid.yml @@ -27,3 +27,19 @@ jobs: 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: + ruby-version: '3.0' + - 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