File tree Expand file tree Collapse file tree 4 files changed +51
-95
lines changed
Expand file tree Collapse file tree 4 files changed +51
-95
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy Staging
2+ on : push
3+
4+ env :
5+ NODE_VERSION : 18
6+ JAVA_VERSION : 11
7+ JAVA_DISTRIBUTION : ' adopt'
8+
9+ jobs :
10+ build-push :
11+ name : run tests, build and push
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v4
15+
16+ - name : Install Node ${{ env.NODE_VERSION }}
17+ uses : actions/setup-node@v3
18+ with :
19+ node-version : ${{ env.NODE_VERSION }}
20+ cache : ' npm'
21+
22+ - name : Install dependencies
23+ run : npm run ci
24+
25+ - name : Lint tests
26+ run : npm run lint
27+
28+ - name : Run tests
29+ run : npm run test
30+
31+ - name : Run coverage
32+ run : npm run cover
33+
34+ - name : upload codecov
35+ uses : codecov/codecov-action@v4
36+
37+ - name : AWS, credentials setup
38+ # if: ${{ github.ref == 'refs/heads/master' }}
39+ uses : aws-actions/configure-aws-credentials@v4
40+ with :
41+ aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY_ID }}
42+ aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
43+
44+ - name : Call the Build bash script for QA
45+ # if: ${{ github.ref == 'refs/heads/master' }}
46+ id : build
47+ run : |
48+ ./deployment/deploy-qa.sh
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -29,5 +29,6 @@ NC='\033[0m'
2929 echo -en " Invalidating cloudfront distribution for staging ...\n"
3030 aws configure set preview.cloudfront true
3131 aws cloudfront create-invalidation --distribution-id E10P37NG0GMER --paths /branch-staging-latest.min.js /example-staging
32+
3233# Exit prompts
3334echo -en " ${GREEN} Done deploy QA script ...${NC} \n"
Original file line number Diff line number Diff line change 11{
2- "APIEndpoint": "https://api2 .branch.io",
3- "sdkKey": null ,
2+ "APIEndpoint": "https://api.stage .branch.io",
3+ "sdkKey": "key_live_feebgAAhbH9Tv85H5wLQhpdaefiZv5Dv" ,
44 "port": "3000"
55}
You can’t perform that action at this time.
0 commit comments