Commit Graph

22 Commits

Author SHA1 Message Date
Michael Beemer 32f912a089
chore: add merge group trigger to pr lint
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2025-06-11 16:09:06 -04:00
Michael Beemer 594cf538be
chore: revert golang ci lint to v6
Reverts 4f909c1068

Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2025-06-11 16:08:18 -04:00
renovate[bot] 4f909c1068
chore(deps): update golangci/golangci-lint-action action to v8 (#134)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-08 02:46:27 +00:00
renovate[bot] 1b4d062045
chore(deps): update dagger/dagger-for-github action to v7 (#132)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-07 21:48:46 +00:00
Kris Coleman 96f4cde0f8
feat: introduce dagger for integration testing and ci (#100)
* feat: introduce dagger for integration testing and ci

Signed-off-by: Kris Coleman <kriscodeman@gmail.com>

* feat: make integration testing extensible and modular

my intention here is to make the pattern for integration testing more accessible.
let's abstract the integration test pattern itself into a framework to harness the boiler plate.
then reuse our csharp integration test code as our first integration-test.

Signed-off-by: Kris Coleman <kriscodeman@gmail.com>

---------

Signed-off-by: Kris Coleman <kriscodeman@gmail.com>
2025-05-06 18:08:32 +00:00
Kris Coleman ae645813c4
feat(csharp): added generator and integration tests (#97)
* feat: adds c# generator

Adds a new generator for C# to create typesafe clients.
This allows users to generate C# code based on feature flag
definitions, streamlining integration with .NET applications.
Includes necessary command-line flags, templates, and tests.

Signed-off-by: Kris Coleman <kriscodeman@gmail.com>

* feat(csharp): adds C# generator integration test

Adds a C# code generator integration test to ensure the generated C# code compiles correctly.

This includes:
- A new C# generator based on templates
- Updates to the build process and documentation to support C# generation and testing
- An integration test using Docker to compile the generated C# code
- Fixes and adjustments to data type mappings for C# compatibility

Signed-off-by: Kris Coleman <kriscodeman@gmail.com>

* chore: go fmt fixes

Signed-off-by: Kris Coleman <kriscodeman@gmail.com>

* Update .github/workflows/csharp-integration.yml

Co-authored-by: André Silva <2493377+askpt@users.noreply.github.com>
Signed-off-by: Kris Coleman <kris.blacksuitmedia@gmail.com>
Signed-off-by: Kris Coleman <kriscodeman@gmail.com>

* Update CONTRIBUTING.md

Co-authored-by: André Silva <2493377+askpt@users.noreply.github.com>
Signed-off-by: Kris Coleman <kris.blacksuitmedia@gmail.com>
Signed-off-by: Kris Coleman <kriscodeman@gmail.com>

* Update internal/generators/csharp/csharp.go

Co-authored-by: André Silva <2493377+askpt@users.noreply.github.com>
Signed-off-by: Kris Coleman <kris.blacksuitmedia@gmail.com>
Signed-off-by: Kris Coleman <kriscodeman@gmail.com>

* chore(ci): moved the csharp integration into pr-test workflow as a separate job

Signed-off-by: Kris Coleman <kriscodeman@gmail.com>

* chore: cleaned up generate code to private funcs are private

Signed-off-by: Kris Coleman <kriscodeman@gmail.com>

* feat(csharp): implemented di for generated code

- updated openfeature to 2.3.2
- introduced IServiceCollection and DI patterns
- updated tests and expectations

Signed-off-by: Kris Coleman <kriscodeman@gmail.com>

* Update .github/workflows/pr-test.yml

Co-authored-by: Michael Beemer <beeme1mr@users.noreply.github.com>
Signed-off-by: Kris Coleman <kris.blacksuitmedia@gmail.com>

* Update .github/workflows/pr-test.yml

Co-authored-by: Michael Beemer <beeme1mr@users.noreply.github.com>
Signed-off-by: Kris Coleman <kris.blacksuitmedia@gmail.com>

---------

Signed-off-by: Kris Coleman <kriscodeman@gmail.com>
Signed-off-by: Kris Coleman <kris.blacksuitmedia@gmail.com>
Co-authored-by: André Silva <2493377+askpt@users.noreply.github.com>
Co-authored-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2025-04-14 17:40:52 +00:00
Michael Beemer a40b6a4d31
feat: add nodejs generator (#91)
Signed-off-by: Michael Beemer <michael.beemer@dynatrace.com>
2025-04-02 14:52:57 +01:00
Michael Beemer 106bf9ddfe
refactor!: add init command, update cli flags, support a config file (#71)
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2025-03-14 16:12:26 -04:00
Michael Beemer 68a72ee929
feat: add doc gen, move schema path, add tests, fix react gen (#68)
## This PR

- moves JSON schema to a dedicated directory
- added schema validation tests
- fixed React code gen (and tests)
- automate CLI doc generation
- Loosen JSON schema
- ~~Rename default value~~

### Related Issues

Fixes #66

### Notes

It's a big PR that I could break into smaller changes if necessary.

---------

Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
Signed-off-by: Michael Beemer <michael.beemer@dynatrace.com>
2025-01-27 15:20:19 +00:00
Michael Beemer 3f9e20d294
ci: revert to release please 3
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2024-11-05 21:22:39 -05:00
Michael Beemer f0bef6407f
ci: remove dco workaround
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2024-11-05 15:59:13 -05:00
Michael Beemer d9d3099f19
ci: update release process (#57)
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2024-11-05 15:42:37 -05:00
Michael Beemer 159fa0e9f9
ci: add fallback value to if condition
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2024-11-01 19:46:49 -04:00
Michael Beemer 78bb9e6abc
ci: add merge group as test trigger
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2024-10-31 16:37:37 -04:00
Michael Beemer 9e7597faeb
ci: add test workflow (#54)
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2024-10-31 16:33:31 -04:00
Michael Beemer 4b329dc9cb
ci: add docker publish (#37)
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2024-10-22 14:37:28 -04:00
Michael Beemer a2fe4aa33e
fix: set github token for release process
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2024-10-22 09:39:06 -04:00
Michael Beemer 2fce79eb70
ci: add go releaser (#34)
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2024-10-22 09:35:01 -04:00
Michael Beemer dc07cdfe54
fix: release permissions (#25)
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2024-10-04 14:16:05 -04:00
Michael Beemer f6cfcea268
ci: add release please (#23)
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2024-10-04 17:58:10 +00:00
Michael Beemer 910119922a
ci: add dco workaround (#8)
## This PR

- adds a DCO ci workaround

### Notes

Workaround that allows us to use GitHub merge queues with the DCO app.

Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2024-08-27 10:42:27 -04:00
Michael Beemer 478123831b
add license, readme, and pr linter
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2024-08-20 14:01:06 -04:00