Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions .github/workflows/acceptance_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,16 @@ jobs:
- 0.15.0
- 1.0.0
steps:
- name: Set up Go
id: go
uses: actions/setup-go@v3
with:
go-version: 1.17
- name: Check out code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
check-latest: true
cache: true
- name: Show Go version
run: go version
- name: Run tests
env:
TF_ACC_TERRAFORM_VERSION: ${{ matrix.terraform }}
Expand Down
46 changes: 34 additions & 12 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,16 @@ jobs:
name: Run Super-Linter
runs-on: ubuntu-latest
steps:
- name: Checkout code
- name: Check out code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
check-latest: true
cache: true
- name: Show Go version
run: go version
- name: Run Super-Linter
uses: github/super-linter@v4.9.6
env:
Expand All @@ -23,8 +31,16 @@ jobs:
name: Run golangci-lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
- name: Check out code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
check-latest: true
cache: true
- name: Show Go version
run: go version
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3.2.0
with:
Expand All @@ -34,26 +50,32 @@ jobs:
name: Check if generated documentation is up-to-date
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Go
id: go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.17
- name: Checkout code
uses: actions/checkout@v3
go-version-file: go.mod
check-latest: true
cache: true
- name: Show Go version
run: go version
- name: Check if generated documentation is up-to-date
run: make check-docs

check-go-mod:
name: Check Go module consistency
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Go
id: go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.17
- name: Checkout code
uses: actions/checkout@v3
go-version-file: go.mod
check-latest: true
cache: true
- name: Show Go version
run: go version
- name: Check Go module consistency
run: make check-go-mod
16 changes: 9 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,18 @@ jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.17

go-version-file: go.mod
check-latest: true
cache: true
- name: Show Go version
run: go version
- name: Build
run: make build
- name: Import GPG key
id: import_gpg
# TODO: move this to HashiCorp namespace or find alternative that is just simple gpg commands
Expand Down
26 changes: 16 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,16 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Set up Go
id: go
uses: actions/setup-go@v3
with:
go-version: 1.17
- name: Check out code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
check-latest: true
cache: true
- name: Show Go version
run: go version
- name: Build
run: make build

Expand All @@ -40,13 +43,16 @@ jobs:
- 0.15.0
- 1.0.0
steps:
- name: Set up Go
id: go
uses: actions/setup-go@v3
with:
go-version: 1.17
- name: Check out code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
check-latest: true
cache: true
- name: Show Go version
run: go version
- name: Run tests
env:
TF_ACC_TERRAFORM_VERSION: ${{ matrix.terraform }}
Expand Down
4 changes: 2 additions & 2 deletions examples/demo/demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ check_env() {
}

list_cloud_exports() {
read -r -p "Press any key to list Cloud Exports with cURL on https://cloudexports.api.kentik.com/cloud_export/v202101beta1/exports"
curl --location --request GET --max-time 30 "https://cloudexports.api.kentik.com/cloud_export/v202101beta1/exports" \
read -r -p "Press any key to list Cloud Exports with cURL on https://cloudexports.api.kentik.com/cloud_export/v202506/exports"
curl --location --request GET --max-time 30 "https://cloudexports.api.kentik.com/cloud_export/v202506/exports" \
--header "X-CH-Auth-Email: $KTAPI_AUTH_EMAIL" \
--header "X-CH-Auth-API-Token: $KTAPI_AUTH_TOKEN" | jq
pause
Expand Down
34 changes: 17 additions & 17 deletions go.mod

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading