Add Github Actions (#300)

* add github actions
* remove travis configuration
This commit is contained in:
Matt 2021-12-21 10:28:14 -05:00 committed by GitHub
parent 5e9862fb71
commit e0db056a2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 24 deletions

25
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: Main
on: [push]
jobs:
Build-And-Run-Tests:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['3.0.3', '2.7.5']
env:
RAILS_ENV: test
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: setup app
run: |
bundle
cd spec/dummy
bundle exec rails g impressionist -f
bundle exec rake db:create db:migrate RAILS_ENV=test
- name: Lint
run: bundle exec rubocop
- name: Run Tests
run: bundle exec rspec

View File

@ -1,24 +0,0 @@
language: ruby
env:
- RUBYOPT='-W:no-deprecated -W:no-experimental'
before_script:
- bundle
- cd spec/dummy
- bundle exec rails g impressionist -f
- bundle exec rake db:create db:migrate RAILS_ENV=test
- cd ../..
script:
- bundle exec rspec
- bundle exec rubocop
rvm:
- 2.7.1
- ruby-head
matrix:
allow_failures:
- rvm: ruby-head
fast_finish: true
notifications:
email:
- acnalesso@yahoo.co.uk
- john@couponshack.com
- mmcmahand@gmail.com