Skip to content

Commit 239313c

Browse files
authored
Merge pull request #157 from netbox-community/feature/openapi-generator
[WIP] Replace "go-swagger" by "openapi-generator"
2 parents fa82f18 + fb2e7ba commit 239313c

File tree

3,827 files changed

+1008475
-769247
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,827 files changed

+1008475
-769247
lines changed

.github/workflows/main.yml

+5-14
Original file line numberDiff line numberDiff line change
@@ -13,33 +13,24 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
go: ["1.20", "1.19"]
16+
go: ["1.21", "1.20"]
1717
steps:
1818
- name: Checkout
19-
uses: actions/[email protected]
20-
21-
- name: License check
22-
run: ./scripts/license-check.sh
19+
uses: actions/[email protected]
2320

2421
- name: Go installation
25-
uses: actions/setup-go@v3.5.0
22+
uses: actions/setup-go@v5.0.0
2623
with:
2724
go-version: ${{ matrix.go }}
2825

2926
- name: Go dependencies installation
3027
run: go get -d ./...
3128

32-
- name: Golint installation
33-
run: go get -u golang.org/x/lint/golint
34-
3529
- name: Build
3630
run: go build ./...
3731

38-
- name: Lint
39-
run: ./scripts/golint.sh
32+
- name: Test
33+
run: go test ./...
4034

4135
- name: Vet
4236
run: go vet ./...
43-
44-
- name: Test
45-
run: go test -v ./...

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v3.3.0
14+
uses: actions/checkout@v4.1.1
1515

1616
- name: Release
1717
uses: softprops/[email protected]

.gitignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
.DS_Store
2-
.env
3-
.gobincache/
2+
/.env

.openapi-generator-ignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Already part of the project
2+
/.gitignore
3+
/api/openapi.yaml
4+
/README.md
5+
6+
# Unwanted
7+
/.travis.yml
8+
/git_push.sh

0 commit comments

Comments
 (0)