-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * removed rubyversion * Added versions * f
- Loading branch information
1 parent
732c25a
commit f33bed5
Showing
2 changed files
with
42 additions
and
2 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,42 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
ruby: [ 3.0 ] | ||
rails_version: | ||
- ~> 5.2.0 | ||
- ~> 6.0.0 | ||
- ~> 6.1.0 | ||
- ~> 7.0.0 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
gem install bundler | ||
bundle install --jobs 4 --retry 3 | ||
- name: Setup DB | ||
run: | | ||
cd spec/dummy | ||
bundle exec rake db:create db:migrate | ||
env: | ||
RAILS_ENV: test | ||
|
||
- name: Run tests | ||
run: bundle exec rspec | ||
env: | ||
RAILS_VERSION: ${{ matrix.rails_version }} |
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