forked from tkrajina/typescriptify-golang-structs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add upstream struct utility functions
- feat: Add `TagAll`, `AddFieldTags` and `AddTypeWithName` to work with upstream golang structs - feat: Add `WithReadOnlyFields` to generate JSII compatible TS Interfaces - chore: Does not require global `typescript` install for testing (using `package.json` and `npx`) - chore: Bump to golang 1.21
- Loading branch information
1 parent
ac0debc
commit 11bd498
Showing
12 changed files
with
2,840 additions
and
2,518 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,44 @@ | ||
name: Go | ||
|
||
on: | ||
push: | ||
branches: '*' | ||
pull_request: | ||
branches: 'master' | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
go-version: [1.16.x] | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
name: Build and test | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
|
||
- name: Set up Go 1.x | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
id: go | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v2 | ||
|
||
- name: Get dependencies | ||
run: | | ||
go mod download | ||
- name: Build | ||
run: | | ||
cd tscriptify | ||
go build -v . | ||
- name: Test | ||
run: | | ||
cd typescriptify | ||
go test -v . | ||
name: Go | ||
|
||
on: | ||
push: | ||
branches: "*" | ||
pull_request: | ||
branches: "main" | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
go-version: [1.21.x] | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
name: Build and test | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Set up Go 1.x | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
id: go | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v2 | ||
|
||
- name: Get dependencies | ||
run: | | ||
go mod download | ||
- name: Ensure Typescript is available | ||
run: | | ||
npm install -g typescript | ||
- name: Build | ||
run: | | ||
cd tscriptify | ||
go build -v . | ||
- name: Test | ||
run: | | ||
cd typescriptify | ||
go test -v . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
.idea/ | ||
.vscode/ | ||
*.iml | ||
tags | ||
tmp_* | ||
.idea/ | ||
.vscode/ | ||
*.iml | ||
tags | ||
tmp_* | ||
node_modules |
Oops, something went wrong.