Skip to content

Commit

Permalink
feat: Add upstream struct utility functions
Browse files Browse the repository at this point in the history
- 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
vincentgna committed Feb 4, 2024
1 parent ac0debc commit 11bd498
Show file tree
Hide file tree
Showing 12 changed files with 2,840 additions and 2,518 deletions.
85 changes: 44 additions & 41 deletions .github/workflows/go.yml
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 .
11 changes: 6 additions & 5 deletions .gitignore
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
Loading

0 comments on commit 11bd498

Please sign in to comment.