File tree Expand file tree Collapse file tree 7 files changed +41
-24
lines changed
libraries/tests/e2e/functions/core
logging/Function/test/Function.Tests
metrics/Function/test/Function.Tests
tracing/Function/test/Function.Tests Expand file tree Collapse file tree 7 files changed +41
-24
lines changed Original file line number Diff line number Diff line change 30
30
- name : Test Examples
31
31
run : dotnet test ../examples/
32
32
- name : Test & Code Coverage
33
- run : dotnet test --collect:"XPlat Code Coverage" --results-directory ./codecov --verbosity normal
33
+ run : dotnet test --filter "Category!=E2E" -- collect:"XPlat Code Coverage" --results-directory ./codecov --verbosity normal
34
34
- name : Codecov
35
35
uses : codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # 4.5.0
36
36
with :
Original file line number Diff line number Diff line change 1
- name : E2E Tests Infra deployment
1
+ # PROCESS
2
+ #
3
+ # 1. Deploy the core stack using AWS CDK.
4
+ # 2. Deploy the AOT stack using AWS CDK.
5
+
6
+ # USAGE
7
+ #
8
+ # This workflow is used by the E2E Tests workflow to deploy the necessary infrastructure.
2
9
3
- on :
4
- workflow_dispatch :
5
- push :
6
- branches :
7
- - develop
10
+ name : E2E Tests Infra deployment
8
11
9
12
permissions :
10
13
id-token : write
@@ -13,23 +16,20 @@ permissions:
13
16
jobs :
14
17
deploy-core-stack :
15
18
runs-on : aws-powertools_ubuntu-latest_8-core
16
- strategy :
17
- matrix :
18
- dotnet-version : [ 6.x, 8.x ]
19
19
steps :
20
20
- name : Checkout code
21
21
uses : actions/checkout@v4
22
22
23
23
- name : Configure AWS credentials
24
24
uses : aws-actions/configure-aws-credentials@v2
25
25
with :
26
- role-to-assume : arn:aws:iam::YOUR_AWS_ACCOUNT_ID:role/YOUR_ROLE_NAME
26
+ role-to-assume : ${{ secrets.E2E_DEPLOY_ROLE }}
27
27
aws-region : us-east-1
28
28
29
29
- name : Set up .NET
30
30
uses : actions/setup-dotnet@v4
31
31
with :
32
- dotnet-version : ${{ matrix.dotnet-version }}
32
+ dotnet-version : ' 8.x '
33
33
34
34
- name : Install CDK
35
35
run : npm install -g aws-cdk
38
38
run : |
39
39
cd libraries/tests/e2e/infra
40
40
cdk deploy --require-approval never
41
-
41
+
42
42
deploy-aot-stack :
43
43
runs-on : aws-powertools_ubuntu-latest_8-core
44
44
strategy :
53
53
- name : Configure AWS credentials
54
54
uses : aws-actions/configure-aws-credentials@v2
55
55
with :
56
- role-to-assume : arn:aws:iam::YOUR_AWS_ACCOUNT_ID:role/YOUR_ROLE_NAME
56
+ role-to-assume : ${{ secrets.E2E_DEPLOY_ROLE }}
57
57
aws-region : us-east-1
58
58
59
59
- name : Set up .NET
Original file line number Diff line number Diff line change 1
- name : Destroy e2e CDK Stacks
1
+ # PROCESS
2
+ #
3
+ # 1. Destroy the core stack using AWS CDK.
4
+ # 2. Destroy the AOT stack using AWS CDK.
5
+
6
+ # USAGE
7
+ #
8
+ # This workflow is used by the E2E Tests workflow to destroy the infrastructure after tests are completed.
2
9
3
- on :
4
- workflow_dispatch :
5
- push :
6
- branches :
7
- - develop
10
+ name : Destroy e2e CDK Stacks
8
11
9
12
permissions :
10
13
id-token : write
24
27
- name : Configure AWS credentials
25
28
uses : aws-actions/configure-aws-credentials@v2
26
29
with :
27
- role-to-assume : arn:aws:iam::YOUR_AWS_ACCOUNT_ID:role/YOUR_ROLE_NAME
30
+ role-to-assume : ${{ secrets.E2E_DEPLOY_ROLE }}
28
31
aws-region : us-east-1
29
32
30
33
- name : Install CDK
Original file line number Diff line number Diff line change
1
+ # PROCESS
2
+ #
3
+ # 1. Deploy the core and AOT stacks using the infra deployment workflow.
4
+ # 2. Run the E2E tests after the infrastructure is deployed.
5
+ # 3. Destroy the CDK stacks after the tests are completed.
6
+
7
+ # USAGE
8
+ #
9
+ # This workflow is triggered on push to the develop branch or manually via workflow_dispatch.
10
+
1
11
name : E2E Tests
2
12
3
13
on :
@@ -16,10 +26,11 @@ jobs:
16
26
17
27
deploy-aot-stack :
18
28
uses : ./.github/workflows/e2e-infra-deploy.yml
19
-
29
+
20
30
run-tests :
21
31
runs-on : aws-powertools_ubuntu-latest_8-core
22
- needs : [deploy-core-stack, deploy-aot-stack]
32
+ # needs: [deploy-core-stack, deploy-aot-stack]
33
+ needs : [deploy-core-stack]
23
34
steps :
24
35
- name : Checkout code
25
36
uses : actions/checkout@v4
32
43
- name : Run Core Tests
33
44
run : |
34
45
cd libraries/tests/e2e/functions/core
35
- dotnet test
46
+ dotnet test
Original file line number Diff line number Diff line change 8
8
9
9
namespace Function . Tests ;
10
10
11
+ [ Trait ( "Category" , "E2E" ) ]
11
12
public class FunctionTest
12
13
{
13
14
private readonly ITestOutputHelper _testOutputHelper ;
Original file line number Diff line number Diff line change 8
8
9
9
namespace Function . Tests ;
10
10
11
+ [ Trait ( "Category" , "E2E" ) ]
11
12
public class FunctionTest
12
13
{
13
14
private readonly ITestOutputHelper _testOutputHelper ;
Original file line number Diff line number Diff line change 8
8
9
9
namespace Function . Tests ;
10
10
11
+ [ Trait ( "Category" , "E2E" ) ]
11
12
public class FunctionTest
12
13
{
13
14
private readonly ITestOutputHelper _testOutputHelper ;
You can’t perform that action at this time.
0 commit comments