File tree Expand file tree Collapse file tree 4 files changed +48
-95
lines changed
Expand file tree Collapse file tree 4 files changed +48
-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+ id : runTests
30+ run : npm run test
31+
32+ - name : Run coverage
33+ id : runCover
34+ if : steps.runTests.outcome == 'success'
35+ run : npm run cover
36+
37+ - name : upload codecov
38+ uses : codecov/codecov-action@v4
39+ if : steps.runCover.outcome == 'success'
40+
41+ - name : Call the Build bash script for QA
42+ # if: ${{ github.ref == 'refs/heads/master' }}
43+ id : build
44+ run : |
45+ ./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