-
Notifications
You must be signed in to change notification settings - Fork 0
99 lines (95 loc) · 3.36 KB
/
authservice.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
name: AuthService - E2ETests
on:
push:
branches:
- new_ui_openlogin
schedule:
- cron: "0 * * * *"
workflow_dispatch:
inputs:
environment:
description: "prod|beta|cyan|staging|testing|celeste|local"
required: true
default: "testing"
env:
NODE_VERSION: 16
jobs:
build:
name: AuthService - E2ETests
strategy:
fail-fast: false
max-parallel: 1
matrix:
include:
- env:
PLATFORM: sapphire_devnet
- env:
PLATFORM: sapphire_mainnet
- env:
PLATFORM: testnet
- env:
PLATFORM: mainnet
- env:
PLATFORM: cyan
- env:
PLATFORM: aqua
runs-on: macos-latest
# env:
# PLATFORM: ${{ matrix.env }}
# outputs:
# conclusion: ${{ steps.run-tests.conclusion }}
steps:
- name: Check out code
uses: actions/checkout@v2
with:
ref: new_ui_openlogin
- name: Unlock secrets
uses: korti11/[email protected]
with:
GIT_CRYPT_KEY: ${{secrets.GIT_CRYPT_KEY}}
- name: Trigger tests
env:
FB_TEST_USER_EMAIL: ${{ secrets.FB_TEST_USER_EMAIL }}
FB_2FA_TEST_USER_EMAIL: ${{ secrets.FB_2FA_TEST_USER_EMAIL }}
FB_TEST_USER_PASS: ${{ secrets.FB_TEST_USER_PASS }}
FB_TEST_USER_NAME: ${{ secrets.FB_TEST_USER_NAME }}
GOOGLE_ACCOUNT: ${{ secrets.GOOGLE_ACCOUNT }}
GOOGLE_PASSWORD: ${{ secrets.GOOGLE_PASSWORD }}
GOOGLE_NAME: ${{ secrets.GOOGLE_NAME }}
DISCORD_EMAIL: ${{ secrets.DISCORD_EMAIL }}
DISCORD_PASSWORD: ${{ secrets.DISCORD_PASSWORD }}
TWITTER_ACCOUNT: ${{ secrets.TWITTER_ACCOUNT }}
TWITTER_PASSWORD: ${{ secrets.TWITTER_PASSWORD }}
TWITTER_EMAIL: ${{ secrets.TWITTER_EMAIL }}
CI: true
CI_MODE: ${{ secrets.CI_MODE }}
MAILOSAUR_API_KEY: ${{ secrets.MAILOSAUR_API_KEY }}
MAILOSAUR_SERVER_ID: ${{ secrets.MAILOSAUR_SERVER_ID }}
MAILOSAUR_SERVER_DOMAIN: ${{ secrets.MAILOSAUR_SERVER_DOMAIN }}
PLATFORM: ${{ matrix.env.PLATFORM }}
APP_VERSION: "v3"
GITHUB_USER_EMAIL: ${{ secrets.GIT_USER_EMAIL }}
GITHUB_USER_PASSWORD: ${{ secrets.GIT_USER_PASSWORD }}
SMS_MOBILE_NUMBER: ${{ secrets.SMS_MOBILE_NUMBER }}
LOGIN_MOBILE_NUMBER: ${{ secrets.LOGIN_MOBILE_NUMBER }}
BACKUP_PHRASE_PROD: ${{ secrets.BACKUP_PHRASE_PROD }}
BACKUP_PHRASE_CYAN: ${{ secrets.BACKUP_PHRASE_CYAN }}
BACKUP_PHRASE_AQUA: ${{ secrets.BACKUP_PHRASE_AQUA }}
TESTMAIL_APP_APIKEY: ${{ secrets.TESTMAIL_APP_APIKEY }}
MAIL_APP: ${{ secrets.MAIL_APP }}
run: |
echo "Platform: ${{ matrix.env.PLATFORM }}" && ipconfig getifaddr en0 && ls && npm install && npx playwright install && npm run authservice:config
- name: Upload test results
if: always()
uses: actions/upload-artifact@v3
with:
path: test-results/*
if-no-files-found: ignore
- name: Update Discord
uses: sarisia/actions-status-discord@v1
if: always()
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
title: ${{ github.workflow}} - ${{ matrix.env.PLATFORM }}
status: ${{ job.status }}
nocontext: true