-
-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use GitHub Actions instead of Travis for CI
- Loading branch information
Showing
2 changed files
with
52 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: CI Tests | ||
|
||
on: | ||
push: | ||
branches: "*" | ||
pull_request: | ||
branches: "*" | ||
|
||
jobs: | ||
test: | ||
name: "Ruby ${{ matrix.ruby }}, Rails ${{ matrix.gemfile }}" | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
gemfile: | ||
- "5.0" | ||
- "5.1" | ||
- "5.2" | ||
- "6.0" | ||
- "6.1" | ||
ruby: | ||
- "2.4.9" | ||
- "2.5.7" | ||
- "2.6.5" | ||
- "2.7.2" | ||
exclude: | ||
- gemfile: "6.0" | ||
ruby: "2.4.9" | ||
- gemfile: "6.1" | ||
ruby: "2.4.9" | ||
|
||
env: | ||
BUNDLE_GEMFILE: gemfiles/rails_${{ matrix.gemfile }}.gemfile | ||
RAILS_ENV: test | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: "Install Ruby ${{ matrix.ruby }}" | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true | ||
|
||
- name: "Reset app database" | ||
run: bundle exec rake dummy:db:reset | ||
|
||
- name: "Run tests" | ||
run: bundle exec rake |
This file was deleted.
Oops, something went wrong.