winglang / wing

A programming language for the cloud ☁️ A unified programming model, combining infrastructure and runtime code into one language ⚡
https://winglang.io
Other
4.76k stars 187 forks source link

testing that project templates work in each version/periodically #6594

Open tsuf239 opened 1 month ago

tsuf239 commented 1 month ago

Use Case

so we'll never break them by mistake, and if so- we'll know to fix them

Proposed Solution

we can either include the project template folder in the sdk spec testing or create a dedicated action for it.

Implementation Notes

No response

Component

No response

Community Notes

Chriscbr commented 3 weeks ago

There are some tests here for the project templates that should run on every build: https://github.com/winglang/wing/blob/main/apps/wing/src/commands/init.test.ts - I wonder if they aren't working?

tsuf239 commented 3 weeks ago

There are some tests here for the project templates that should run on every build: https://github.com/winglang/wing/blob/main/apps/wing/src/commands/init.test.ts - I wonder if they aren't working?

Those are great :) I remembered that some wing libs stopped working on the cloud after a while (but it's a bit different since the actual sim and cloud code are different sometimes, and some weren't tested properly in the first place) Do you think it's necessary to test the template on the cloud?

Chriscbr commented 3 weeks ago

Ah I see - yeah we should definitely be testing them on the cloud as well 👍