This repository was archived by the owner on Apr 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (44 loc) · 1.83 KB
/
autotests-stage.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
name: Autotests Stage
on:
schedule:
- cron: "43 * * * *"
workflow_dispatch: {}
jobs:
build:
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: main
- name: Build
run: docker build -t collabry:test-${{ github.sha }} --target full .
test:
needs: [build]
runs-on: self-hosted
steps:
- name: Autotests
run: >
docker run --rm
-e "MESSENGER_BASE_URL=${STAGE__COLLABRY__MESSENGER__API__ROOT_URL}${STAGE__COLLABRY__MESSENGER__API__ROOT_PATH}"
-e "NOTIFICATIONS_BASE_URL=${STAGE__COLLABRY__NOTIFICATIONS__API__ROOT_URL}${STAGE__COLLABRY__NOTIFICATIONS__API__ROOT_PATH}"
-e "PROJECTS_BASE_URL=${STAGE__COLLABRY__PROJECTS__API__ROOT_URL}${STAGE__COLLABRY__PROJECTS__API__ROOT_PATH}"
-e "STORAGE_BASE_URL=${STAGE__COLLABRY__STORAGE__API__ROOT_URL}${STAGE__COLLABRY__STORAGE__API__ROOT_PATH}"
-e "USERS_BASE_URL=${STAGE__COLLABRY__USERS__API__ROOT_URL}${STAGE__COLLABRY__USERS__API__ROOT_PATH}"
-e "OAUTH2_HABR_CALLBACK_URL=${STAGE__COLLABRY__USERS__API__OAUTH2_HABR_CALLBACK_URL}"
-e "OLEG_EMAIL=${OLEG_EMAIL}"
-e "OLEG_EMAIL_PASSWORD=${OLEG_EMAIL_PASSWORD}"
-e "MATVEY_EMAIL=${MATVEY_EMAIL}"
-e "MATVEY_EMAIL_PASSWORD=${MATVEY_EMAIL_PASSWORD}"
-v /collabry/stage/secrets:/run/secrets
collabry:test-${{ github.sha }} pytest autotests
- name: Notification
if: failure()
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
message: |
@WainsCat @vanvanich9 @brulitsan @OlegYurchik
Autotests Failed
Last commit: https://github.com/${{ github.repository }}/commit/${{github.sha}}