This repository has been archived by the owner on Aug 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
65 lines (65 loc) · 2.92 KB
/
deploy-qa.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
name: Deploy to QA Environment
on:
push:
branches:
- 'develop'
- 'hotfix/**'
pull_request:
branches:
- 'release/**'
jobs:
deploy-qa:
environment:
name: preview
url: https://app.logdna.com/273e532689/logs/view?apps=serendipity-mk1
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16.10.0'
- name: Install dependencies
run: yarn install
- name: Lint Code
run: yarn lint
- name: Build and Compile Typescript
run: yarn build
- name: Run test cases
run: yarn test --watchAll=false
- name: Deploy to Heroku Shared Test Environment
uses: AkhileshNS/[email protected]
with:
heroku_api_key: ${{secrets.QA_HEROKU_API_KEY}}
heroku_app_name: 'serendipity-mk1'
heroku_email: '[email protected]'
procfile: 'worker: yarn qa'
env:
HD_DISCORD_BOT_TOKEN: ${{secrets.QA_DISCORD_TOKEN}}
HD_DISCORD_BOT_PUBLIC_KEY: ${{secrets.QA_BOT_PUBLIC_KEY}}
HD_DISCORD_BOT_APPLICATION_ID: ${{secrets.QA_BOT_APPLICATION_ID}}
HD_DISCORD_OWNER_ID: ${{secrets.QA_DISCORD_OWNER_ID}}
HD_MONGODB_USERNAME: ${{secrets.QA_MONGODB_USERNAME}}
HD_MONGODB_PASS: ${{secrets.QA_MONGODB_PASS}}
HD_MONGODB_CLUSTER: ${{secrets.QA_MONGODB_CLUSTER}}
HD_LOGDNA_TOKEN: ${{secrets.QA_LOGDNA_TOKEN}}
HD_TWITTER_API_TOKEN: ${{secrets.QA_TWITTER_API_TOKEN}}
HD_TWITTER_API_SECRET: ${{secrets.QA_TWITTER_API_SECRET}}
HD_TWITTER_BEARER_TOKEN: ${{secrets.QA_TWITTER_BEARER_TOKEN}}
HD_TWITTER_ACCESS_TOKEN: ${{secrets.QA_TWITTER_ACCESS_TOKEN}}
HD_TWITTER_ACCESS_TOKEN_SECRET: ${{secrets.QA_TWITTER_ACCESS_TOKEN_SECRET}}
HD_TWITTER_CLIENT_ID: ${{secrets.QA_TWITTER_CLIENT_ID}}
HD_TWITTER_CLIENT_SECRET: ${{secrets.QA_TWITTER_CLIENT_SECRET}}
HD_SENTRY_IO_DSN: ${{secrets.QA_SENTRY_IO_DSN}}
- name: Get current package version
id: package-version
uses: martinbeentjes/[email protected]
- name: Sentry Release
uses: getsentry/[email protected]
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
with:
environment: 'qa'
version: 'degen@${{ steps.package-version.outputs.current-version }}'
sourcemaps: './dist'