build.yml 854 B

123456789101112131415161718192021222324252627282930313233
  1. name: build
  2. on: push
  3. jobs:
  4. build:
  5. if: "!contains(github.event.head_commit.message, '[skip ci]')"
  6. runs-on: ubuntu-latest
  7. strategy:
  8. fail-fast: false
  9. matrix:
  10. include:
  11. - ruby: 3.0
  12. gemfile: Gemfile
  13. - ruby: 3.0
  14. gemfile: gemfiles/Gemfile-6-1
  15. - ruby: 2.7
  16. gemfile: gemfiles/Gemfile-6-0
  17. - ruby: 2.6
  18. gemfile: gemfiles/Gemfile-5-2
  19. - ruby: 2.5
  20. gemfile: gemfiles/Gemfile-5-0
  21. env:
  22. CI: 1
  23. BUNDLE_GEMFILE: ${{ matrix.gemfile }}
  24. USE_OFFICIAL_GEM_SOURCE: 1
  25. CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
  26. steps:
  27. - uses: actions/checkout@v2
  28. - uses: ruby/setup-ruby@v1
  29. with:
  30. ruby-version: ${{ matrix.ruby }}
  31. bundler-cache: true
  32. - run: bundle exec rails test