-
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (41 loc) · 1.1 KB
/
docker.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
name: Docker
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
linters:
name: Docker Linters
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup docker
run: |
bin/docker-setup
- name: Run linters and security checks
continue-on-error: true
run: bin/docker-quality
tests:
name: Docker Tests
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup docker
run: |
bin/docker-setup
docker-compose up --detach
- name: Run tests
continue-on-error: true
run: |
export RAILS_ENV=test
docker-compose up --detach
docker-compose exec -T app rails db:create db:schema:load
DONT_GENERATE_REPORT=true CI= DISABLE_SPRING=true docker-compose exec -T app bin/tests ${@:-spec}
docker-compose stop
- name: Stop containers
run: docker-compose down