-
Notifications
You must be signed in to change notification settings - Fork 59
48 lines (39 loc) · 1.19 KB
/
continuous_integration.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
name: Continuous integration
on: [push]
jobs:
ci_validation:
runs-on: ubuntu-latest
services:
mongo:
image: mongo:6.0.14
ports:
- 27017:27017
env:
MONGO_INITDB_DATABASE: steam_test_1_8_x
options: >-
--health-cmd "echo 'db.runCommand("ping").ok' | mongosh --quiet"
--health-interval 10s
--health-timeout 5s
--health-retries 5
--name mongo_container
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Install MongoDB tools
run: |
wget https://fastdl.mongodb.org/tools/db/mongodb-database-tools-ubuntu2204-x86_64-100.9.4.deb
sudo apt install ./mongodb-database-tools-ubuntu2204-x86_64-100.9.4.deb
- name: Install imagemagick (convert)
run: |
sudo apt-get update
sudo apt-get install -y imagemagick
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3.5
bundler-cache: true
cache-version: 1
- name: Prepare the DB
run: bundle exec rake mongodb:test:seed
- name: Test
run: bundle exec rspec