mirror of
https://github.com/kemko/liquid.git
synced 2026-01-01 15:55:40 +03:00
Merge pull request #1308 from Shopify/pz-gh-actions
Use GitHub Actions for CI
This commit is contained in:
41
.github/workflows/liquid.yml
vendored
Normal file
41
.github/workflows/liquid.yml
vendored
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
name: Liquid
|
||||||
|
on: [push]
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
entry:
|
||||||
|
- { ruby: 2.4, allowed-failure: false }
|
||||||
|
- { ruby: 2.5, allowed-failure: false }
|
||||||
|
- { ruby: 2.6, allowed-failure: false }
|
||||||
|
- { ruby: 2.7, 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 }}
|
||||||
|
memory_profile:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: ruby/setup-ruby@v1
|
||||||
|
with:
|
||||||
|
ruby-version: 2.7
|
||||||
|
- 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 memory_profile:run
|
||||||
26
.travis.yml
26
.travis.yml
@@ -1,26 +0,0 @@
|
|||||||
language: ruby
|
|
||||||
cache: bundler
|
|
||||||
|
|
||||||
rvm:
|
|
||||||
- 2.4
|
|
||||||
- 2.5
|
|
||||||
- 2.6
|
|
||||||
- &latest_ruby 2.7
|
|
||||||
- ruby-head
|
|
||||||
|
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
- rvm: *latest_ruby
|
|
||||||
script: bundle exec rake memory_profile:run
|
|
||||||
name: Profiling Memory Usage
|
|
||||||
allow_failures:
|
|
||||||
- rvm: ruby-head
|
|
||||||
|
|
||||||
branches:
|
|
||||||
only:
|
|
||||||
- master
|
|
||||||
- gh-pages
|
|
||||||
- /.*-stable/
|
|
||||||
|
|
||||||
notifications:
|
|
||||||
disable: true
|
|
||||||
Reference in New Issue
Block a user