@@ -22,30 +22,36 @@ jobs:
2222 runs-on : ubuntu-latest
2323 environment : dev
2424 steps :
25- - uses : actions/checkout@v3
25+ - uses : actions/checkout@v4
26+
2627 - name : Setup go
27- uses : actions/setup-go@v3
28+ uses : actions/setup-go@v5
2829 with :
29- go-version : ' 1.20.1'
30+ go-version : ' 1.22'
31+
3032 - name : Go Version
3133 run : go version
34+
3235 - name : Setup Node
33- uses : actions/setup-node@v3
36+ uses : actions/setup-node@v4
3437 with :
35- node-version : ' 18'
38+ node-version : ' 20'
39+
3640 - name : Setup python
37- uses : actions/setup-python@v4
41+ uses : actions/setup-python@v5
3842 with :
39- python-version : ' 3.7 '
43+ python-version : ' 3.11 '
4044 cache : ' pip'
45+
4146 - name : Configure AWS Credentials
4247 uses : aws-actions/configure-aws-credentials@v4
4348 with :
4449 audience : sts.amazonaws.com
4550 role-to-assume : arn:aws:iam::395594542180:role/github-actions-deploy
4651 aws-region : us-east-1
52+
4753 - name : Cache Go modules
48- uses : actions/cache@v2
54+ uses : actions/cache@v3
4955 with :
5056 path : ${{ github.workspace }}/go/pkg/mod
5157 key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
@@ -64,19 +70,25 @@ jobs:
6470 - name : Python Setup
6571 working-directory : cla-backend
6672 run : |
73+ python -m venv .venv
74+ source .venv/bin/activate
6775 pip install --upgrade pip
6876 pip install -r requirements.txt
6977
70-
71-
7278 - name : Python Lint
7379 working-directory : cla-backend
7480 run : |
81+ python -m venv .venv
82+ source .venv/bin/activate
83+ pip install --upgrade pylint
7584 pylint cla/*.py || true
7685
7786 - name : Python Test
7887 working-directory : cla-backend
7988 run : |
89+ python -m venv .venv
90+ source .venv/bin/activate
91+ pip install --upgrade pytest py pytest-cov pytest-clarity
8092 pytest "cla/tests" -p no:warnings
8193 env :
8294 PLATFORM_GATEWAY_URL : https://api-gw.dev.platform.linuxfoundation.org
@@ -106,8 +118,7 @@ jobs:
106118
107119 - name : Go Test
108120 working-directory : cla-backend-go
109- run : |
110- make test
121+ run : make test
111122
112123 - name : Go Lint
113124 working-directory : cla-backend-go
@@ -126,7 +137,6 @@ jobs:
126137 cp ../cla-backend-go/bin/zipbuilder-lambda bin/
127138 cp ../cla-backend-go/bin/gitlab-repository-check-lambda bin/
128139
129-
130140 - name : EasyCLA v1 Deployment us-east-1
131141 working-directory : cla-backend
132142 run : |
@@ -142,6 +152,7 @@ jobs:
142152 if [[ ! -f serverless.yml ]]; then echo "Missing serverless.yml file. Exiting..."; exit 1; fi
143153 if [[ ! -f serverless-authorizer.yml ]]; then echo "Missing serverless-authorizer.yml file. Exiting..."; exit 1; fi
144154 yarn sls deploy --force --stage ${STAGE} --region us-east-1 --verbose
155+
145156 - name : EasyCLA v1 Service Check
146157 run : |
147158 sudo apt install curl jq -y
@@ -176,14 +187,15 @@ jobs:
176187 echo "Failed to get a successful response from endpoint: ${v3_url}"
177188 exit ${exit_code}
178189 fi
190+
179191 - name : EasyCLA v2 Deployment us-east-2
180192 working-directory : cla-backend-go
181193 run : |
182194 if [[ ! -f bin/backend-aws-lambda ]]; then echo "Missing bin/backend-aws-lambda binary file. Exiting..."; exit 1; fi
183195 if [[ ! -f bin/user-subscribe-lambda ]]; then echo "Missing bin/user-subscribe-lambda binary file. Exiting..."; exit 1; fi
184196 rm -rf ./node_modules/
185197 yarn install
186- yarn sls deploy --force --stage ${STAGE} --region us-east-2
198+ yarn sls deploy --force --stage ${STAGE} --region us-east-2 --verbose
187199
188200 - name : EasyCLA v2 Service Check
189201 run : |
0 commit comments