Skip to content

Commit

Permalink
Merge branch 'fix-go-version-gco' into filter-type-gco
Browse files Browse the repository at this point in the history
# Conflicts:
#	specs/README.md
  • Loading branch information
GCorbel committed Jun 6, 2024
2 parents 00f7f44 + 8780259 commit 2315d8a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ jobs:
if: success()
uses: actions/setup-go@v2
with:
go-version: 1.18.x
go-version: 1.16.x
- name: Checkout code
uses: actions/checkout@v2
- name: Run tests
run: go test -v -covermode=count ./...
- name: Postman generated
working-directory: specs
run: |
go install github.com/grokify/spectrum@v1.15.0
go install github.com/grokify/spectrum@v1.10.3
spectrum --config engage-digital_postman2.config.json --basePostmanFile engage-digital_postman2.base.json --openapiFile engage-digital_openapi3.yaml --postmanFile engage-digital_postman2.json.new
diff engage-digital_postman2.json engage-digital_postman2.json.new
lint:
Expand Down
12 changes: 9 additions & 3 deletions specs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,19 @@ Use `spectrum` to create the Postman 2.x collection from the OpenAPI 3 API Speci

### Installation

The following will install the `spectrum` executable in the `~/go/bin` directory.
Be sure to have the version of go specified in the go.mod file. If you have the latest version of go installed, you can install an oldest version with :

```bash
$ go install github.com/grokify/[email protected]
$ go install golang.org/dl/go1.16@latest
```

This approach requires `go` 1.16 minimum be installed on your system. See more here: [https://golang.org/](https://golang.org/).
See more here: [https://golang.org/](https://golang.org/).

The following will install the `spectrum` executable in the `~/go/bin` directory.

```bash
$ ~/go/bin/go1.16 install github.com/grokify/[email protected]
```

### Usage

Expand Down

0 comments on commit 2315d8a

Please sign in to comment.