Skip to content

Commit 006cffb

Browse files
authored
Typescript unit testing (#94)
* Add test setup for TypeScript unit tests Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de> * Add affinityGroup TypeScript unit tests Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de> * Add image TypeScript unit tests Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de> * Enable CI to execute TypeScript tests Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de> --------- Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>
1 parent fb37f6e commit 006cffb

19 files changed

Lines changed: 12444 additions & 4 deletions

.github/workflows/ci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ jobs:
5858
run: make generate_sdks
5959
- name: Lint
6060
run: make lint_provider
61+
- name: Execute tests
62+
run: make test
6163

6264
config:
6365
name: Check GoReleaser config

Makefile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ TFGEN := pulumi-tfgen-${PACK}
1717
PROVIDER := pulumi-resource-${PACK}
1818
VERSION := $(shell pulumictl get version)
1919

20-
TESTPARALLELISM := 4
21-
2220
WORKING_DIR := $(shell pwd)
2321

2422
OS := $(shell uname)
@@ -140,8 +138,12 @@ install_nodejs_sdk::
140138

141139
install_sdks:: install_dotnet_sdk install_python_sdk install_nodejs_sdk
142140

143-
test::
144-
cd examples && go test -v -tags=all -parallel ${TESTPARALLELISM} -timeout 2h
141+
test_ts::
142+
@echo "--- Run Pulumi TypeScript Unit Tests ---"
143+
npm install
144+
npm test
145+
146+
test:: test_ts
145147

146148
fmt:
147149
@gofmt -s -w .

0 commit comments

Comments
 (0)