Skip to content

Commit 2f37e28

Browse files
chore: CICD remove old layers
1 parent b8c433c commit 2f37e28

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

.github/workflows/pull-request.yml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,40 @@ 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
46+
working-directory: test/cdk-basic
47+
1848
test:
1949
uses: ./.github/workflows/common-test.yml
2050
secrets: inherit
21-
needs: build
51+
needs: remove-old-layers
2252
with:
2353
mode: build
2454
testMonorepo: false

0 commit comments

Comments
 (0)