-
Notifications
You must be signed in to change notification settings - Fork 7
56 lines (56 loc) · 1.58 KB
/
ci.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
name: "CI"
env:
BUNDLE_GEMS__RAILSLTS__COM: ${{ secrets.BUNDLE_GEMS__RAILSLTS__COM }}
BUNDLE_GEM__FURY__IO: ${{ secrets.BUNDLE_GEM__FURY__IO }}
BUNDLE_GITHUB__COM: ${{ secrets.BUNDLE_GITHUB__COM }}
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
test:
runs-on: ubuntu-latest
services:
mysql:
image: mysql:5.7
env:
MYSQL_DB: mas_test
MYSQL_ALLOW_EMPTY_PASSWORD: yes
ports:
- '3306:3306'
options: >-
--health-cmd="mysqladmin ping"
--health-interval=10s
--health-timeout=5s
--health-retries=3
env:
RAILS_ENV: test
ALGOLIA_APP_ID: test
ALGOLIA_API_KEY: test
FRONTEND_HTTP_REQUEST_TIMEOUT: 12
ATTR_CRYPT_KEY: ${{ secrets.ATTR_CRYPT_KEY }}
BIDX_CRYPT_KEY: ${{ secrets.BIDX_CRYPT_KEY }}
CAR_COST_TOOL_DOMAIN: localhost
CAR_COST_TOOL_CAP_SUBSCRIBER_ID: ''
CAR_COST_TOOL_CAP_PASSWORD: ''
CAR_COST_TOOL_MAX_CARS_TO_COMPARE: 3
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Ruby and gems
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Setup Node.js environment
uses: actions/setup-node@v3.5.1
with:
node-version: 4.1.1
- name: Install bower
run: npm install -g bower
- name: Install bowndler packages
run: bin/bowndler update
- name: Set up database schema
run: bin/rake db:create db:schema:load
- name: Run tests
run: bin/rake