-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (64 loc) · 2.6 KB
/
push_checks.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: RSpec
on: push
jobs:
rspec:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Get Packages for Ruby Prerequisites
run: |
sudo apt-get -y update
sudo apt-get -y install git libntirpc-dev libxml2 libxml2-dev curl libreadline-dev zlib1g-dev autoconf bison build-essential libyaml-dev libreadline-dev libncurses5-dev libffi-dev libgdbm-dev
- name: Install libssl1.0-dev from bionic sources
run: |
echo 'deb http://security.ubuntu.com/ubuntu bionic-security main' | sudo tee -a /etc/apt/sources.list.d/bionic-security.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
sudo apt update && apt-cache policy libssl1.0-dev
sudo apt-get -y install libssl1.0-dev
- uses: actions/checkout@v3
- name: Download Ruby
run: |
curl -O https://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.10.tar.bz2
- name: Cache Ruby
id: cache-ruby
uses: actions/cache@v3
with:
path: ruby-2.1.10
key: ${{ runner.os }}-gluedb-ruby-${{ hashFiles('**/Gemfile.lock', 'ruby-2.1.10.tar.bz2', '/usr/local/bin/ruby') }}
restore-keys: |
${{ runner.os }}-gluedb-ruby-${{ hashFiles('**/Gemfile.lock', 'ruby-2.1.10.tar.bz2', '/usr/local/bin/ruby') }}
- name: Build Ruby
if: steps.cache-ruby.outputs.cache-hit != 'true'
run: |
tar xjf ruby-2.1.10.tar.bz2
cd ruby-2.1.10 && ./configure --disable-install-doc && make -j 2
- name: Install Ruby
run: |
cd ruby-2.1.10
sudo make install
- name: Launch MongoDB
uses: wbari/[email protected]
with:
mongoDBVersion: 3.4
- name: Setup Node.js for use with actions
uses: actions/setup-node@v2
with:
# Version Spec of the version to use. Examples: 10.x, 10.15.1, >=10.15.0, lts
node-version: 9.11.1
- name: Cache Gems
uses: actions/cache@v3
with:
path: vendor/bundle
key: ${{ runner.os }}-gluedb-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gluedb-gems-${{ hashFiles('**/Gemfile.lock') }}
- name: bundle install
run: |
sudo gem install bundler -v '1.17.3'
export BUNDLE_GITHUB__COM=${{ secrets.dchbx_deployments_token }}:x-oauth-basic
bundle config path vendor/bundle
bundle install
- name: run tests
run: |
cp config/exchange.yml.example config/exchange.yml
bundle exec rspec