-
Notifications
You must be signed in to change notification settings - Fork 3
81 lines (69 loc) · 1.87 KB
/
proxy_test.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Proxy Test
on:
push:
paths:
- 'proxy/**'
jobs:
rspec:
runs-on: ubuntu-latest
services:
redis:
image: redis:alpine
ports: ["6379:6379"]
options: --entrypoint redis-server
steps:
# - name: Set Timezone
# uses: szenius/[email protected]
# with:
# timezoneLinux: America/Denver
- name: Checkout code
uses: actions/checkout@v2
- name: Set up ruby 2.7.5
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.5
- name: Cache ruby gems
uses: actions/cache@v1
with:
path: vendor/bundle
key: ubuntu-20-04-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
ubuntu-20-04-gems-
- name: Install ruby dependencies
run: |
cd proxy
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Run specs
env:
RAILS_ENV: test
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
COVERAGE: '1'
CLIENT_ID: ${{ secrets.TEST_CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.TEST_CLIENT_SECRET }}
EMR_BASE_URL: https://training.canvasmedical.com
FHIR_BASE_URL: https://fhir-training.canvasmedical.com
API_KEY: realapikey
REDIS_URL: redis://localhost:6379/0
run: |
cd proxy
bundle exec rspec
- name: Upload coverage results
uses: actions/upload-artifact@v2
with:
name: coverage-report
path: proxy/coverage
coverage:
runs-on: ubuntu-latest
needs: rspec
steps:
- name: Download coverage report
uses: actions/download-artifact@v2
with:
name: coverage-report
path: proxy/coverage
- name: Check coverage
uses: vigetlabs/[email protected]
with:
minimum_coverage: 100
coverage_path: proxy/coverage/.last_run.json