Compare commits

...

7 Commits

Author SHA1 Message Date
Jonathan Abbett
b5e12f331e Fix env 2021-06-17 15:54:33 -04:00
Jonathan Abbett
c15ff56940 Rails versino 2021-06-17 15:50:06 -04:00
Jonathan Abbett
5bb6b3900c Syntax 2021-06-17 13:35:52 -04:00
Jonathan Abbett
612734b7b7 Gem specific changes from https://www.prioritized.net/blog/testing-ruby-gems-with-github-actions 2021-06-17 13:32:53 -04:00
Jonathan Abbett
19c8d7481b Tweaks 2021-06-17 13:20:52 -04:00
Jonathan Abbett
4487b9f75b Fix syntax error 2021-06-17 12:59:56 -04:00
Jonathan Abbett
5bde6600f1 Automated testing with a GitHub Action 2021-06-17 12:56:46 -04:00

46
.github/workflows/ruby.yml vendored Normal file
View File

@ -0,0 +1,46 @@
name: Ruby
on:
push:
branches: [ master, develop ]
pull_request:
branches: "*"
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- rails-version: "5.2.0"
- rails-version: "6.0.0"
- rails-version: "6.1.0"
env:
RAILS_VERSION: ${{ matrix.rails-version }}
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
- name: Generate lockfile
run: bundle lock
- name: Cache dependencies
uses: actions/cache@v1
with:
path: vendor/bundle
key: bundle-${{ hashFiles('Gemfile.lock') }}
- name: Install dependencies
run: |
bundle config path vendor/bundle
gem install bundler --conservative
bundle check || bundle install
- name: Install JS dependencies
run: yarn
- name: Create database
run: bundle exec rake db:create db:migrate
- name: Run tests
run: bundle exec rake test