Backport CI migration

This commit is contained in:
Dylan Thacker-Smith
2023-01-10 14:41:56 -05:00
parent dd70fcfec8
commit f199ba0715
4 changed files with 49 additions and 34 deletions
+27
View File
@@ -0,0 +1,27 @@
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