build.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. name: CI
  2. on:
  3. - push
  4. jobs:
  5. build:
  6. name: Ruby ${{ matrix.version }} ${{ matrix.gemfile }}
  7. runs-on: ubuntu-latest
  8. env:
  9. BUNDLE_GEMFILE: ${{ matrix.gemfile }}
  10. strategy:
  11. matrix:
  12. version:
  13. - "2.4"
  14. - "2.5"
  15. - "2.6"
  16. - "2.7"
  17. - "3.0"
  18. gemfile:
  19. - Gemfile_ar41
  20. - Gemfile_ar50
  21. - Gemfile_ar51
  22. - Gemfile_ar_master
  23. exclude:
  24. - version: "2.7"
  25. gemfile: Gemfile_ar41
  26. - version: "3.0"
  27. gemfile: Gemfile_ar41
  28. steps:
  29. - uses: actions/checkout@v2
  30. - name: Remove Gemfile.lock
  31. run: |
  32. rm -f ${GITHUB_WORKSPACE}/Gemfile.lock
  33. - name: Set up Ruby ${{ matrix.version }}
  34. uses: ruby/setup-ruby@v1
  35. with:
  36. ruby-version: ${{ matrix.version }}
  37. - name: Run Tests
  38. run: |
  39. bundle config set --with docs
  40. bundle config set ignore_messages true
  41. bundle
  42. bundle exec rake test