Skip to content

Commit

Permalink
readd goimport installation
Browse files Browse the repository at this point in the history
  • Loading branch information
hahmed-dev committed Oct 20, 2023
1 parent 29ae575 commit ed456d8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 19 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,25 @@ jobs:
- run: npx swagger-cli bundle -t json -w 300 main.yaml > doc/compiled_new.json
- run: diff doc/compiled.json doc/compiled_new.json

# compile-go:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout 🛎️
# uses: actions/checkout@v3
# with:
# persist-credentials: false
# - name: Set up Go
# uses: actions/setup-go@v2
# with:
# go-version: 1.19.6
# - name: Build
# env:
# API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: |
# npm install
# npm run generate.go
# cd clients/go && go build
compile-go:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.19.6
- name: Build
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm install
npm run generate.go
cd clients/go && go build
# compile-cli:
# runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ ruby:
openapi-generator-cli generate -i tmp/compiled.yaml -g ruby -o clients/ruby -c ./openapi-generator/ruby_lang.yaml
go:
openapi-generator-cli generate -i tmp/compiled.yaml -g go -o clients/go -c ./openapi-generator/go_lang.yaml
go install golang.org/x/tools/cmd/goimports@latest
goimports -w clients/go
cd clients/go && go mod tidy
typescript:
openapi-generator-cli generate -i tmp/compiled.yaml -g typescript-fetch -o clients/typescript -c ./openapi-generator/typescript_lang.yaml
Expand Down

0 comments on commit ed456d8

Please sign in to comment.