build.yml 946 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. gemfile:
  18. - Gemfile_ar41
  19. - Gemfile_ar50
  20. - Gemfile_ar51
  21. - Gemfile_ar_master
  22. exclude:
  23. - version: 2.7
  24. gemfile: Gemfile_ar41
  25. steps:
  26. - uses: actions/checkout@v2
  27. - name: Remove Gemfile.lock
  28. run: |
  29. rm -f ${GITHUB_WORKSPACE}/Gemfile.lock
  30. - name: Set up Ruby ${{ matrix.version }}
  31. uses: ruby/setup-ruby@v1
  32. with:
  33. ruby-version: ${{ matrix.version }}
  34. - name: Run Tests
  35. run: |
  36. bundle config set --with docs
  37. bundle config set ignore_messages true
  38. bundle
  39. bundle exec rake test