Skip to content

Commit

Permalink
Create ruby.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jgreben committed Nov 10, 2020
1 parent 5098097 commit 617a0bb
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ruby.yml
@@ -0,0 +1,39 @@
name: CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6.3
- name: Install dependencies
run: bundle install --without production
- name: Run tests
run: |
bundle exec rake db:test:prepare
bundle exec rake db:seed
bundle exec rake spec
- name: Install FreeTDS for LobbyTrack Tests
run: |
sudo tar -xzf lib/assets/freetds_1.1.6.orig.tar.gz
cd freetds-1.1.6
sudo ./configure --prefix=/usr/local --with-tdsver=7.3
sudo make
sudo make install
cd ..
- name: Setup file directories for tests
run: |
mkdir -p tmp/Dataload/EndowRpt
mkdir -p tmp/Dataload/BookplateMerge/Batches/Queue
mkdir -p tmp/Dataload/UserloadRerun
mkdir -p tmp/Dataload/ILLiadUserExport
mkdir -p tmp/Libsys_webforms/sal3_batch_requests_batch/bc_file

0 comments on commit 617a0bb

Please sign in to comment.