mirror of
https://github.com/Shopify/liquid.git
synced 2026-10-03 09:05:13 -07:00
Backport CI migration
This commit is contained in:
@@ -1,2 +0,0 @@
|
|||||||
enabled:
|
|
||||||
- cla
|
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
name: Contributor License Agreement (CLA)
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request_target:
|
||||||
|
types: [opened, synchronize]
|
||||||
|
issue_comment:
|
||||||
|
types: [created]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
cla:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: |
|
||||||
|
(github.event.issue.pull_request
|
||||||
|
&& !github.event.issue.pull_request.merged_at
|
||||||
|
&& contains(github.event.comment.body, 'signed')
|
||||||
|
)
|
||||||
|
|| (github.event.pull_request && !github.event.pull_request.merged)
|
||||||
|
steps:
|
||||||
|
- uses: Shopify/shopify-cla-action@v1
|
||||||
|
with:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
cla-token: ${{ secrets.CLA_TOKEN }}
|
||||||
@@ -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
|
||||||
-32
@@ -1,32 +0,0 @@
|
|||||||
language: ruby
|
|
||||||
|
|
||||||
rvm:
|
|
||||||
- 2.1
|
|
||||||
- 2.2
|
|
||||||
- 2.3
|
|
||||||
- 2.4
|
|
||||||
- 2.5
|
|
||||||
- ruby-head
|
|
||||||
- jruby-head
|
|
||||||
# - rbx-2
|
|
||||||
|
|
||||||
sudo: false
|
|
||||||
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
packages:
|
|
||||||
- libgmp3-dev
|
|
||||||
|
|
||||||
matrix:
|
|
||||||
allow_failures:
|
|
||||||
- rvm: ruby-head
|
|
||||||
- rvm: jruby-head
|
|
||||||
|
|
||||||
install:
|
|
||||||
- gem install rainbow -v 2.2.1
|
|
||||||
- bundle install
|
|
||||||
|
|
||||||
script: bundle exec rake
|
|
||||||
|
|
||||||
notifications:
|
|
||||||
disable: true
|
|
||||||
Reference in New Issue
Block a user