This repository has been archived by the owner on Oct 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (52 loc) · 1.79 KB
/
test_backend.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
name: Run back-end tests
on:
workflow_dispatch:
push:
branches:
- '**'
jobs:
test_backend:
runs-on: ubuntu-latest
container: mcr.microsoft.com/dotnet/sdk:5.0
env:
Db: CollActionDb
DbUser: postgres
DbPassword: test
DbHost: postgres
FromAddress: [email protected]
MailChimpTestListId: 1a035c45ca
S3Region: eu-central-1
S3Bucket: collaction-test
SesRegion: eu-west-1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
MailChimpKey: ${{ secrets.MailChimpKey }}
S3AwsAccessKeyId: ${{ secrets.S3AwsAccessKeyId }}
S3AwsAccessKey: ${{ secrets.S3AwsAccessKey }}
SesAwsAccessKeyId: ${{ secrets.SesAwsAccessKeyId }}
SesAwsAccessKey: ${{ secrets.SesAwsAccessKey }}
Authentication__Facebook__AppId: ${{ secrets.Authentication__Facebook__AppId }}
Authentication__Facebook__AppSecret: ${{ secrets.Authentication__Facebook__AppSecret }}
Authentication__Google__ClientId: ${{ secrets.Authentication__Google__ClientId }}
Authentication__Google__ClientSecret: ${{ secrets.Authentication__Google__ClientSecret }}
Authentication__Twitter__ConsumerKey: ${{ secrets.Authentication__Twitter__ConsumerKey }}
Authentication__Twitter__ConsumerSecret: ${{ secrets.Authentication__Twitter__ConsumerSecret }}
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: test
POSTGRES_USER: postgres
POSTGRES_DB: CollActionDb
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- "5432:5432"
steps:
- uses: actions/checkout@v2
- name: Install Dependencies
run: dotnet restore
- name: Test
run: dotnet test --no-restore