build.yml 879 B

123456789101112131415161718192021222324252627282930313233
  1. name: CI
  2. on:
  3. push:
  4. jobs:
  5. build:
  6. runs-on: ubuntu-latest
  7. name: Ruby ${{ matrix.version }}, ${{ matrix.gemfile }}
  8. strategy:
  9. matrix:
  10. version: [2.4, 2.5, 2.6, 2.7]
  11. gemfile: [Gemfile_ar41, Gemfile_ar50, Gemfile_ar51, Gemfile_ar_master]
  12. exclude:
  13. - version: 2.7
  14. gemfile: Gemfile_ar41
  15. steps:
  16. - uses: actions/checkout@v2
  17. - name: Set up Ruby ${{ matrix.version }}
  18. uses: ruby/setup-ruby@v1
  19. with:
  20. ruby-version: ${{ matrix.version }}
  21. - name: Set up gemfile
  22. run: |
  23. export BUNDLE_GEMFILE=${GITHUB_WORKSPACE}/${{ matrix.gemfile }}
  24. rm -f ${GITHUB_WORKSPACE}/Gemfile.lock
  25. - name: Run Tests
  26. run: |
  27. bundle config set --with docs
  28. bundle config set ignore_messages true
  29. bundle
  30. bundle exec rake test