|
@@ -1,30 +1,38 @@
|
|
name: CI
|
|
name: CI
|
|
|
|
|
|
-on:
|
|
|
|
- push:
|
|
|
|
|
|
+on:
|
|
|
|
+ - push
|
|
|
|
|
|
jobs:
|
|
jobs:
|
|
build:
|
|
build:
|
|
|
|
+ name: Ruby ${{ matrix.version }} ${{ matrix.gemfile }}
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
- name: Ruby ${{ matrix.version }}, ${{ matrix.gemfile }}
|
|
|
|
|
|
+ env:
|
|
|
|
+ BUNDLE_GEMFILE: ${{ matrix.gemfile }}
|
|
strategy:
|
|
strategy:
|
|
matrix:
|
|
matrix:
|
|
- version: [2.4, 2.5, 2.6, 2.7]
|
|
|
|
- gemfile: [Gemfile_ar41, Gemfile_ar50, Gemfile_ar51, Gemfile_ar_master]
|
|
|
|
|
|
+ version:
|
|
|
|
+ - 2.4
|
|
|
|
+ - 2.5
|
|
|
|
+ - 2.6
|
|
|
|
+ - 2.7
|
|
|
|
+ gemfile:
|
|
|
|
+ - Gemfile_ar41
|
|
|
|
+ - Gemfile_ar50
|
|
|
|
+ - Gemfile_ar51
|
|
|
|
+ - Gemfile_ar_master
|
|
exclude:
|
|
exclude:
|
|
- version: 2.7
|
|
- version: 2.7
|
|
gemfile: Gemfile_ar41
|
|
gemfile: Gemfile_ar41
|
|
-
|
|
|
|
steps:
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/checkout@v2
|
|
|
|
+ - name: Remove Gemfile.lock
|
|
|
|
+ run: |
|
|
|
|
+ rm -f ${GITHUB_WORKSPACE}/Gemfile.lock
|
|
- name: Set up Ruby ${{ matrix.version }}
|
|
- name: Set up Ruby ${{ matrix.version }}
|
|
uses: ruby/setup-ruby@v1
|
|
uses: ruby/setup-ruby@v1
|
|
- with:
|
|
|
|
|
|
+ with:
|
|
ruby-version: ${{ matrix.version }}
|
|
ruby-version: ${{ matrix.version }}
|
|
- - name: Set up gemfile
|
|
|
|
- run: |
|
|
|
|
- export BUNDLE_GEMFILE=${GITHUB_WORKSPACE}/${{ matrix.gemfile }}
|
|
|
|
- rm -f ${GITHUB_WORKSPACE}/Gemfile.lock
|
|
|
|
- name: Run Tests
|
|
- name: Run Tests
|
|
run: |
|
|
run: |
|
|
bundle config set --with docs
|
|
bundle config set --with docs
|