-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (43 loc) · 1.34 KB
/
ruby.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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.7.1
- 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: Install activerecord-oracle_enhanced-adapter gem
run: gem install activerecord-oracle_enhanced-adapter -v 5.2.8
- name: Install dependencies
run: |
bundle config set --local without 'production'
bundle install
- 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
- name: Set time zone for tests
run: sudo timedatectl set-timezone America/Los_Angeles
- name: Run tests
run: |
RAILS_ENV=test bundle exec rake db:test:prepare
RAILS_ENV=test bundle exec rake db:seed
bundle exec rake spec