Skip to content

Commit 4e1a9b7

Browse files
committed
Debug SAM build with --debug flag and inline verification
1 parent f702f22 commit 4e1a9b7

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/backend.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,22 @@ jobs:
3434
run: npm test
3535
- name: Build
3636
working-directory: backend
37-
run: npm run build
37+
run: |
38+
echo "=== Before build ==="
39+
ls -la
40+
echo "=== Running sam build ==="
41+
sam build --debug
42+
echo "=== After build ==="
43+
ls -la
44+
ls -la .aws-sam/ || echo "ERROR: .aws-sam not created by build!"
45+
echo "=== PWD ==="
46+
pwd
3847
- name: Store artifacts
3948
uses: actions/upload-artifact@v4
4049
with:
4150
name: sam-build
4251
path: backend/.aws-sam
52+
if-no-files-found: error
4353

4454
deploy:
4555
needs: build

0 commit comments

Comments
 (0)