-
Notifications
You must be signed in to change notification settings - Fork 43
35 lines (32 loc) · 973 Bytes
/
run_tests.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
name: Run Tests
on:
workflow_dispatch:
push:
jobs:
ruby_tests:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ["3.0", "3.1"]
steps:
- uses: actions/checkout@v3
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Install dependencies
run: |
sudo apt-get install libyaml-dev
bundle install
- name: Run Integration Tests
run:
rspec -P __tests__/Integration/*.spec.rb --color --format doc
env:
LOB_API_TEST_KEY: ${{ secrets.LOB_API_TEST_KEY }}
LOB_API_LIVE_KEY: ${{ secrets.LOB_API_LIVE_KEY }}
- name: Run Unit Tests
run:
rspec -P __tests__/Api/*.spec.rb --color --format doc
env:
LOB_API_TEST_KEY: ${{ secrets.LOB_API_TEST_KEY }}
LOB_API_LIVE_KEY: ${{ secrets.LOB_API_LIVE_KEY }}