File tree Expand file tree Collapse file tree 4 files changed +28
-4
lines changed
Expand file tree Collapse file tree 4 files changed +28
-4
lines changed Original file line number Diff line number Diff line change 3535 working-directory : unicorn_shared
3636 run : aws cloudformation update-stack --stack-name uni-prop-namespaces --template-body file://uni-prop-namespaces.yaml --capabilities CAPABILITY_AUTO_EXPAND
3737
38- uniorn -service :
38+ unicorn -service :
3939 needs : shared-infrastructure
4040 runs-on : ubuntu-latest
4141 continue-on-error : true
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ STAGE ?= local
55REGION ?= ap-southeast-2
66STACK_PREFIX = uni-prop-$(STAGE )
77
8- .PHONY : help build deploy deploy-domain deploy-service deploy-schema deploy-subscriptions deploy-contracts-subscriptions deploy-web-subscriptions test lint clean delete
8+ .PHONY : help build deploy deploy-domain deploy-service deploy-schema deploy-subscriptions deploy-contracts-subscriptions deploy-web-subscriptions test unit-test integration-test lint clean delete
99
1010help : # # Show available commands
1111 @echo " Unicorn Approvals Service Infrastructure"
@@ -98,6 +98,14 @@ test: ## Run tests
9898 @echo " Running tests..."
9999 @npm test
100100
101+ unit-test : # # Run unit tests only
102+ @echo " Running unit tests..."
103+ @npm run test -- --testPathPattern=tests/unit
104+
105+ integration-test : # # Run integration tests only
106+ @echo " Running integration tests..."
107+ @npm run test -- --testPathPattern=tests/integration
108+
101109lint : # # Lint CloudFormation templates
102110 @echo " Linting CloudFormation templates..."
103111 @cfn-lint infrastructure/approvals-service.yaml -a cfn_lint_serverless.rules
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ STAGE ?= local
55REGION ?= ap-southeast-2
66STACK_PREFIX = uni-prop-$(STAGE )
77
8- .PHONY : help build deploy deploy-domain deploy-schema deploy-service test lint clean delete
8+ .PHONY : help build deploy deploy-domain deploy-schema deploy-service test unit-test integration-test lint clean delete
99
1010help : # # Show available commands
1111 @echo " Unicorn Contracts Service Infrastructure"
@@ -60,6 +60,14 @@ test: ## Run tests
6060 @echo " Running tests..."
6161 @npm test
6262
63+ unit-test : # # Run unit tests only
64+ @echo " Running unit tests..."
65+ @npm run test -- --testPathPattern=tests/unit
66+
67+ integration-test : # # Run integration tests only
68+ @echo " Running integration tests..."
69+ @npm run test -- --testPathPattern=tests/integration
70+
6371lint : # # Lint CloudFormation templates
6472 @echo " Linting CloudFormation templates..."
6573 @cfn-lint infrastructure/contracts-service.yaml -a cfn_lint_serverless.rules
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ STAGE ?= local
55REGION ?= ap-southeast-2
66STACK_PREFIX = uni-prop-$(STAGE )
77
8- .PHONY : help build deploy deploy-domain deploy-schema deploy-subscriptions deploy-service test lint clean delete
8+ .PHONY : help build deploy deploy-domain deploy-schema deploy-subscriptions deploy-service test unit-test integration-test lint clean delete
99
1010help : # # Show available commands
1111 @echo " Unicorn Web Service Infrastructure"
@@ -71,6 +71,14 @@ test: ## Run tests
7171 @echo " Running tests..."
7272 @npm test
7373
74+ unit-test : # # Run unit tests only
75+ @echo " Running unit tests..."
76+ @npm run test -- --testPathPattern=tests/unit
77+
78+ integration-test : # # Run integration tests only
79+ @echo " Running integration tests..."
80+ @npm run test -- --testPathPattern=tests/integration
81+
7482lint : # # Lint CloudFormation templates
7583 @echo " Linting CloudFormation templates..."
7684 @cfn-lint infrastructure/web-service.yaml -a cfn_lint_serverless.rules
You can’t perform that action at this time.
0 commit comments