зеркало из https://github.com/github/gemoji.git
Merge pull request #252 from github/ci-update
Update Ruby CI testing setup
This commit is contained in:
Коммит
e13ac61ebd
|
@ -7,28 +7,18 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest]
|
ruby: ["2.7", "3.0", "3.1"]
|
||||||
ruby: ["2.3", "2.4", "2.5", "2.6", "2.7"]
|
|
||||||
|
|
||||||
runs-on: ${{matrix.os}}
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set up Ruby
|
- name: Set up Ruby
|
||||||
uses: ruby/setup-ruby@v1
|
uses: ruby/setup-ruby@v1
|
||||||
with:
|
with:
|
||||||
ruby-version: ${{matrix.ruby}}
|
ruby-version: ${{matrix.ruby}}
|
||||||
|
bundler-cache: true
|
||||||
- uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: vendor/bundle
|
|
||||||
key: bundle-use-ruby-${{ matrix.os }}-${{ matrix.ruby }}-${{ hashFiles('Gemfile') }}
|
|
||||||
restore-keys: |
|
|
||||||
bundle-use-ruby-${{ matrix.os }}-${{ matrix.ruby }}-
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: bundle install --path vendor/bundle --jobs 4
|
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: bundle exec rake
|
run: bundle exec rake
|
||||||
|
|
12
.travis.yml
12
.travis.yml
|
@ -1,12 +0,0 @@
|
||||||
sudo: false
|
|
||||||
script: script/test
|
|
||||||
rvm:
|
|
||||||
- 1.9.3
|
|
||||||
- '2.1'
|
|
||||||
- '2.2'
|
|
||||||
- '2.3'
|
|
||||||
- '2.4'
|
|
||||||
- '2.5'
|
|
||||||
- '2.6'
|
|
||||||
notifications:
|
|
||||||
email: false
|
|
Загрузка…
Ссылка в новой задаче