Skip to content

Commit 107f9c9

Browse files
chore: CICD remove old layers
1 parent b8c433c commit 107f9c9

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

.github/workflows/pull-request.yml

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,41 @@ jobs:
1515
uses: ./.github/workflows/common-build.yml
1616
secrets: inherit
1717

18+
remove-old-layers:
19+
runs-on: ubuntu-latest
20+
needs: build
21+
concurrency:
22+
group: remove-all-layers
23+
steps:
24+
- uses: actions/checkout@v4
25+
- name: Use Node.js
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: ${{ env.node_version }}
29+
registry-url: 'https://registry.npmjs.org'
30+
- name: Install dependencies
31+
run: npm ci
32+
- name: Download build artifact
33+
uses: actions/download-artifact@v4
34+
with:
35+
name: dist
36+
path: dist
37+
- name: Configure AWS Credentials
38+
uses: aws-actions/configure-aws-credentials@v4
39+
with:
40+
aws-region: eu-west-1
41+
role-to-assume: ${{ secrets.AWS_ROLE }}
42+
role-session-name: GitHubActions
43+
- name: Remove old layers
44+
run: |
45+
node ../../dist/lldebugger.mjs -r all --config-env=test -v
46+
# Picking random test so I can have environment
47+
working-directory: test/sam-basic
48+
1849
test:
1950
uses: ./.github/workflows/common-test.yml
2051
secrets: inherit
21-
needs: build
52+
needs: remove-old-layers
2253
with:
2354
mode: build
2455
testMonorepo: false

0 commit comments

Comments
 (0)