mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-15 17:00:39 -07:00
28 lines
845 B
YAML
28 lines
845 B
YAML
name: Liquid
|
|
on: [push, pull_request]
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
entry:
|
|
- { ruby: "2.7" } # minimum supported
|
|
- { ruby: "3.0", rubocop: true } # latest working with rubocop
|
|
- { ruby: "3.2" } # latest
|
|
name: test (${{ matrix.entry.ruby }})
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- 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 test
|
|
- name: Run rubocop
|
|
if: matrix.entry.rubocop
|
|
run: bundle exec rubocop
|