Skip to content

Commit 380b7d3

Browse files
committed
fix(workflows): Correct typo in job name and enhance Makefiles with unit and integration test commands
1 parent 3050f84 commit 380b7d3

File tree

4 files changed

+28
-4
lines changed

4 files changed

+28
-4
lines changed

.github/workflows/build_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
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

unicorn_approvals/Makefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ STAGE ?= local
55
REGION ?= ap-southeast-2
66
STACK_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

1010
help: ## 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+
101109
lint: ## Lint CloudFormation templates
102110
@echo "Linting CloudFormation templates..."
103111
@cfn-lint infrastructure/approvals-service.yaml -a cfn_lint_serverless.rules

unicorn_contracts/Makefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ STAGE ?= local
55
REGION ?= ap-southeast-2
66
STACK_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

1010
help: ## 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+
6371
lint: ## Lint CloudFormation templates
6472
@echo "Linting CloudFormation templates..."
6573
@cfn-lint infrastructure/contracts-service.yaml -a cfn_lint_serverless.rules

unicorn_web/Makefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ STAGE ?= local
55
REGION ?= ap-southeast-2
66
STACK_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

1010
help: ## 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+
7482
lint: ## Lint CloudFormation templates
7583
@echo "Linting CloudFormation templates..."
7684
@cfn-lint infrastructure/web-service.yaml -a cfn_lint_serverless.rules

0 commit comments

Comments
 (0)