66 pull_request :
77 branches :
88 - main
9+
910jobs :
1011 test-unit :
1112 runs-on : ubuntu-latest
@@ -15,15 +16,28 @@ jobs:
1516 uses : actions/setup-node@v4
1617 with :
1718 node-version : 22.x
19+ cache : ' yarn'
20+
1821 - uses : actions/checkout@v4
1922 env :
2023 HUSKY : " 0"
24+
25+ - name : Restore Yarn Cache
26+ uses : actions/cache@v4
27+ with :
28+ path : node_modules
29+ key : yarn-modules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
30+ restore-keys : |
31+ yarn-modules-${{ runner.os }}-
32+
2133 - name : Set up Python 3.11 for testing
2234 uses : actions/setup-python@v5
2335 with :
2436 python-version : 3.11
37+
2538 - name : Run unit testing
2639 run : make test_unit
40+
2741 deploy-dev :
2842 runs-on : ubuntu-latest
2943 permissions :
@@ -41,21 +55,34 @@ jobs:
4155 uses : actions/setup-node@v4
4256 with :
4357 node-version : 22.x
58+
4459 - uses : actions/checkout@v4
4560 env :
4661 HUSKY : " 0"
62+
63+ - name : Restore Yarn Cache
64+ uses : actions/cache@v4
65+ with :
66+ path : node_modules
67+ key : yarn-modules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
68+ restore-keys : |
69+ yarn-modules-${{ runner.os }}-
70+
4771 - uses : aws-actions/setup-sam@v2
4872 with :
4973 use-installer : true
74+
5075 - name : Set up Python 3.11
5176 uses : actions/setup-python@v5
5277 with :
5378 python-version : 3.11
79+
5480 - uses : aws-actions/configure-aws-credentials@v4
5581 with :
5682 role-to-assume : arn:aws:iam::427040638965:role/GitHubActionsRole
5783 role-session-name : Core_Dev_Deployment
5884 aws-region : us-east-1
85+
5986 - name : Publish to AWS
6087 run : make deploy_dev
6188 env :
@@ -75,19 +102,32 @@ jobs:
75102 uses : actions/setup-node@v4
76103 with :
77104 node-version : 22.x
105+
78106 - uses : actions/checkout@v4
79107 env :
80108 HUSKY : " 0"
109+
110+ - name : Restore Yarn Cache
111+ uses : actions/cache@v4
112+ with :
113+ path : node_modules
114+ key : yarn-modules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
115+ restore-keys : |
116+ yarn-modules-${{ runner.os }}-
117+
81118 - name : Set up Python 3.11 for testing
82119 uses : actions/setup-python@v5
83120 with :
84121 python-version : 3.11
122+
85123 - name : Run health check
86124 run : make dev_health_check
125+
87126 - name : Run live testing
88127 run : make test_live_integration
89128 env :
90129 JWT_KEY : ${{ secrets.JWT_KEY }}
130+
91131 - name : Run E2E testing
92132 run : make test_e2e
93133 env :
0 commit comments