File tree 2 files changed +21
-19
lines changed
2 files changed +21
-19
lines changed Original file line number Diff line number Diff line change @@ -23,25 +23,25 @@ jobs:
23
23
- run : npx swagger-cli bundle -t json -w 300 main.yaml > doc/compiled_new.json
24
24
- run : diff doc/compiled.json doc/compiled_new.json
25
25
26
- # compile-go:
27
- # runs-on: ubuntu-latest
28
- # steps:
29
- # - name: Checkout 🛎️
30
- # uses: actions/checkout@v3
31
- # with:
32
- # persist-credentials: false
33
- # - name: Set up Go
34
- # uses: actions/setup-go@v2
35
- # with:
36
- # go-version: 1.19.6
37
- # - name: Build
38
- # env:
39
- # API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
40
- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41
- # run: |
42
- # npm install
43
- # npm run generate.go
44
- # cd clients/go && go build
26
+ compile-go :
27
+ runs-on : ubuntu-latest
28
+ steps :
29
+ - name : Checkout 🛎️
30
+ uses : actions/checkout@v3
31
+ with :
32
+ persist-credentials : false
33
+ - name : Set up Go
34
+ uses : actions/setup-go@v2
35
+ with :
36
+ go-version : 1.19.6
37
+ - name : Build
38
+ env :
39
+ API_TOKEN_GITHUB : ${{ secrets.API_TOKEN_GITHUB }}
40
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
41
+ run : |
42
+ npm install
43
+ npm run generate.go
44
+ cd clients/go && go build
45
45
46
46
# compile-cli:
47
47
# runs-on: ubuntu-latest
Original file line number Diff line number Diff line change 33
33
openapi-generator-cli generate -i tmp/compiled.yaml -g ruby -o clients/ruby -c ./openapi-generator/ruby_lang.yaml
34
34
go :
35
35
openapi-generator-cli generate -i tmp/compiled.yaml -g go -o clients/go -c ./openapi-generator/go_lang.yaml
36
+ go install golang.org/x/tools/cmd/goimports@latest
37
+ goimports -w clients/go
36
38
cd clients/go && go mod tidy
37
39
typescript :
38
40
openapi-generator-cli generate -i tmp/compiled.yaml -g typescript-fetch -o clients/typescript -c ./openapi-generator/typescript_lang.yaml
You can’t perform that action at this time.
0 commit comments