-
Notifications
You must be signed in to change notification settings - Fork 18
84 lines (75 loc) · 2.33 KB
/
services-health.yaml
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
82
83
84
name: Services helath
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
endpoint-health:
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [ 16.9.0 ]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Fire up docker services
run: |
docker-compose up -d front backoffice backoffice_backend storage monthly
- name: Install packages
run: |
cd services-health-checker
npm i
- name: Run tests
run: |
cd services-health-checker
# Sleeping three minutes so the container would done to build.
sleep 180
npm run test
# services-sanity:
# runs-on: ubuntu-20.04
##
## needs:
## - endpoint-health
#
# strategy:
# matrix:
# node-version: [ 16.9.0 ]
#
# steps:
# # todo: run only when the commit have run-e2e-sanity
# - uses: actions/checkout@v2
# - name: Use Node.js ${{ matrix.node-version }}
# uses: actions/setup-node@v1
# with:
# node-version: ${{ matrix.node-version }}
#
# - name: Install testim
# env:
# TESTIM_TOKEN: ${{ secrets.TESTIM_TOKEN }}
# TESTIM_PROJECT: ${{ secrets.TESTIM_PROJECT }}
# run: |
# npm i -g @testim/testim-cli
# testim --token $TESTIM_TOKEN --project $TESTIM_PROJECT --grid "Testim-Grid" --suite "Sanity"
#
#
# - name: Fire up docker services
# run: |
# docker-compose up -d front backoffice backoffice_backend storage monthly
#
# - name: Prepare env stuff
# run: |
# # Sleeping three minutes so the container would done to build.
# sleep 180
#
# # todo: create here a user and run the sanity tests of login and verify the front works
# curl http://localhost:1000
#
# docker-compose exec -T backoffice_backend npm run cli:createUser -- --username=admin -- [email protected] -- --password=admin
## - name: Install testim
## run: |
## npm i -g @testim/testim-cli
## testim --token ${{ secrets.TESTIM_TOKEN }} --project ${{secrets.TESTIM_PROJECT}} --grid "Testim-Grid" --suite "Sanity"