@@ -17,8 +17,6 @@ permissions:
1717
1818jobs :
1919 build :
20- env :
21- AWS_REGION : us-west-2
2220 runs-on : ubuntu-latest
2321 steps :
2422 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -35,27 +33,13 @@ jobs:
3533 with :
3634 run_install : |
3735 - recursive: true
38- args: [--no-frozen-lockfile, --strict-peer-dependencies ]
36+ args: [--no-frozen-lockfile]
3937
40- - name : build
41- run : pnpm build && pnpm lint && pnpm package
38+ - name : lint
39+ run : pnpm lint
4240
43- - name : configure aws credentials
44- uses : aws-actions/configure-aws-credentials@ec61189d14ec14c8efccab744f656cffd0e33f37 # v6.1.0
45- with :
46- role-to-assume : ${{ secrets.AWS_OIDC_ROLE_ARN }}
47- role-session-name : GitHubActions
48- aws-region : ${{ env.AWS_REGION }}
49-
50- - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
51-
52- - uses : ./
53- id : stack-status
54- with :
55- stack-name : CDKToolkit
56-
57- - name : ' test'
58- run : echo ${{ steps.stack-status.outputs.status }}
41+ - name : build
42+ run : pnpm build
5943
6044 test :
6145 runs-on : ubuntu-latest
@@ -88,14 +72,13 @@ jobs:
8872 with :
8973 run_install : |
9074 - recursive: true
91- args: [--no-frozen-lockfile, --strict-peer-dependencies]
92- - args: [--global, aws-cdk]
75+ args: [--no-frozen-lockfile]
9376
9477 - name : create stack
9578 env :
9679 TIMESTAMP : ${{ steps.gen-timestamp.outputs.timestamp }}
9780 working-directory : test
98- run : cdk deploy -c timestamp=${TIMESTAMP} -c region=us-east-1
81+ run : pnpm dlx aws- cdk@latest deploy -c timestamp=${TIMESTAMP} -c region=us-east-1
9982
10083 - uses : ./
10184 id : stack-status
@@ -111,3 +94,44 @@ jobs:
11194 TIMESTAMP : ${{ steps.gen-timestamp.outputs.timestamp }}
11295 working-directory : test
11396 run : cdk destroy -c name="${TIMESTAMP}" -c region=us-east-1 -f
97+
98+ e2e-test :
99+ env :
100+ AWS_REGION : us-west-2
101+ runs-on : ubuntu-latest
102+ steps :
103+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
104+
105+ - name : Use Node.js
106+ uses : actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
107+ with :
108+ node-version : ' lts/*'
109+ check-latest : true
110+ package-manager-cache : pnpm
111+
112+ - uses : pnpm/action-setup@078e9d416474b29c0c387560859308974f7e9c53 # v6.0.1
113+ name : Install pnpm
114+ with :
115+ run_install : |
116+ - recursive: true
117+ args: [--no-frozen-lockfile]
118+
119+ - name : build
120+ run : pnpm build && pnpm package
121+
122+ - name : configure aws credentials
123+ uses : aws-actions/configure-aws-credentials@ec61189d14ec14c8efccab744f656cffd0e33f37 # v6.1.0
124+ with :
125+ role-to-assume : ${{ secrets.AWS_OIDC_ROLE_ARN }}
126+ role-session-name : GitHubActions
127+ aws-region : ${{ env.AWS_REGION }}
128+
129+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
130+
131+ - uses : ./
132+ id : stack-status
133+ with :
134+ stack-name : CDKToolkit
135+
136+ - name : ' test'
137+ run : echo ${{ steps.stack-status.outputs.status }}
0 commit comments