1+ name : ' Configure Build Environment'
2+ description : ' A reusable action that configures the build environment'
3+
4+ runs :
5+ using : ' composite'
6+ steps :
7+ - run : echo "**** Setup Python ****"
8+ - name : Setup Python
9+ uses : actions/setup-python@v6
10+ with :
11+ python-version : ${{ env.PYTHON_VERSION }}
12+ - run : python --version
13+
14+ - run : echo "**** Install Python based tooling ****"
15+ - name : Install Python based tooling
16+ run : pip install cfn-lint cfn-lint-serverless
17+
18+ - run : echo "**** Setup NodeJS ****"
19+ - name : Setup NodeJS
20+ uses : actions/setup-node@v5
21+ with :
22+ node-version : ${{ env.NODE_VERSION }}
23+ - run : ' echo "NodeJS version: $(node --version)"'
24+
25+ - run : echo "**** Setup pnpm ****"
26+ - uses : pnpm/action-setup@v4
27+ with :
28+ version : 10
29+ - run : ' echo "pnpm version: $(pnpm --version)"'
30+
31+ - run : echo "**** Install NodeJS based tooling ****"
32+ - name : Install NodeJS based tooling
33+ run : npm install -g esbuild
34+
35+ - run : echo "**** Install application dependencies ****"
36+ - name : Install application dependencies
37+ run : pnpm install --no-frozen-lockfile
38+ working-directory : ${{ gitea.workspace }}/${{ env.SERVICE_FOLDER }}
39+
40+ - run : echo "**** Install AWS CLI ****"
41+ - name : Install AWS CLI
42+ run : |
43+ curl -s "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
44+ unzip -q awscliv2.zip
45+ sudo ./aws/install --bin-dir /usr/local/bin --install-dir /usr/local/aws-cli --update > /dev/null 2>&1
46+ aws --version
47+
48+ - run : echo "**** Install SAM CLI ****"
49+ - name : Install SAM CLI
50+ uses : aws-actions/setup-sam@v2
51+ with :
52+ use-installer : true
53+ - run : sam --version
0 commit comments