-
Notifications
You must be signed in to change notification settings - Fork 3
130 lines (101 loc) · 3.28 KB
/
tests.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
name: Integration tests
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
BINDIR: /home/runner/.local/bin/
SLEEP: ${{ secrets.SLEEP }}
CEGA_MQ_CONNECTION: ${{ secrets.CEGA_MQ_CONNECTION }}
CEGA_USERNAME: ${{ secrets.CEGA_USERNAME }}
CEGA_PASSWORD: ${{ secrets.CEGA_PASSWORD }}
BROKER_HOST: ${{ secrets.BROKER_HOST }}
BROKER_PORT: ${{ secrets.BROKER_PORT }}
BROKER_USERNAME: ${{ secrets.BROKER_USERNAME }}
BROKER_PASSWORD: ${{ secrets.BROKER_PASSWORD }}
BROKER_VHOST: ${{ secrets.BROKER_VHOST }}
BROKER_VALIDATE: ${{ secrets.BROKER_VALIDATE }}
EXCHANGE: ${{ secrets.EXCHANGE }}
CEGA_AUTH_URL: ${{ secrets.CEGA_AUTH_URL }}
EGA_BOX_USERNAME: ${{ secrets.EGA_BOX_USERNAME }}
EGA_BOX_PASSWORD: ${{ secrets.EGA_BOX_PASSWORD }}
steps:
- uses: actions/checkout@v2
- name: Set up JDK 13
uses: actions/setup-java@v1
with:
java-version: 13
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install tools
run: |
mkdir -p ${BINDIR}
echo "::add-path::${BINDIR}"
curl -L https://github.com/FiloSottile/mkcert/releases/download/v1.4.1/mkcert-v1.4.1-linux-amd64 -o ${BINDIR}/mkcert
chmod +x ${BINDIR}/mkcert
curl -fsSL https://raw.githubusercontent.com/elixir-oslo/crypt4gh/master/install.sh | sh
pip3 install --user j2cli
- name: Bootstrap
run: make bootstrap
- name: Deploy
run: make deploy
- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Sleep Action
uses: juliangruber/sleep-action@v1.0.1
with:
time: ${{ secrets.SLEEP }}
- name: List services
run: make ls
- name: Test
run: make test
- name: TSD DB
if: ${{ failure() }}
run: docker service logs LEGA_db
- name: TSD MQ
if: ${{ failure() }}
run: docker service logs LEGA_mq
- name: TSD File API
if: ${{ failure() }}
run: docker service logs LEGA_tsd
- name: Tryggve Postgres
if: ${{ failure() }}
run: docker service logs LEGA_postgres
- name: Tryggve Proxy
if: ${{ failure() }}
run: docker service logs LEGA_proxy
- name: Tryggve Interceptor
if: ${{ failure() }}
run: docker service logs LEGA_interceptor
- name: LEGA Ingest
if: ${{ failure() }}
run: docker service logs LEGA_ingest
- name: LEGA Verify
if: ${{ failure() }}
run: docker service logs LEGA_verify
- name: LEGA Finalize
if: ${{ failure() }}
run: docker service logs LEGA_finalize
- name: LEGA Mapper
if: ${{ failure() }}
run: docker service logs LEGA_mapper
- name: LEGA DOA
if: ${{ failure() }}
run: docker service logs LEGA_doa