Skip to content

Commit

Permalink
Add tests for ruby, jruby
Browse files Browse the repository at this point in the history
  • Loading branch information
hahmed committed Jun 14, 2021
1 parent d822ebe commit e261c6a
Show file tree
Hide file tree
Showing 6 changed files with 86 additions and 39 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci-non-mri.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Non MRI CI
on: [push, pull_request]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- { os: ubuntu-latest , ruby: jruby, allow-failure: true }
- { os: ubuntu-latest , ruby: jruby-head, allow-failure: true }

steps:
- uses: actions/checkout@v2

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

- name: Run tests
timeout-minutes: 10
run: bundle exec rake
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: CI
on: [push, pull_request]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [2.5, 2.6, 2.7, 3.0]

steps:
- uses: actions/checkout@v2

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

- name: Run tests
run: bundle exec rake
20 changes: 20 additions & 0 deletions .github/workflows/isolated.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: CI isolated tests
on: [push, pull_request]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [2.7]

steps:
- uses: actions/checkout@v2

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

- name: Run tests
run: bundle exec rake test_isolated
22 changes: 22 additions & 0 deletions .github/workflows/mri-head.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: MRI head CI
on: [push, pull_request]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- { os: ubuntu-latest , ruby: head, allow-failure: true }

steps:
- uses: actions/checkout@v2

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

- name: Run tests
timeout-minutes: 10
run: bundle exec rake
38 changes: 0 additions & 38 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Get upgrade notes from Sprockets 3.x to 4.x at https://github.com/rails/sprocket

## Master

- Move rubocop check to GitHub action.[#67x](https://github.com/rails/sprockets/pull/67x)
- Move to GitHub actions.[#67x](https://github.com/rails/sprockets/pull/67x)
- Remove remaining support for Ruby < 2.4.[#672](https://github.com/rails/sprockets/pull/672)

## 4.0.2
Expand Down

0 comments on commit e261c6a

Please sign in to comment.