Skip to content

feat!: client create result, rename through Update, and in-place Reregister #296

feat!: client create result, rename through Update, and in-place Reregister

feat!: client create result, rename through Update, and in-place Reregister #296

Workflow file for this run

name: CI
on:
push: { branches: [main] }
pull_request:
jobs:
test:
# The library supports both maintained Go releases (go.mod says 1.26), so
# test on each; integration and lint are internal and run on the newest.
strategy:
matrix:
go: ['1.26', '1.27']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with: { go-version: '${{ matrix.go }}' }
- run: go build ./...
- run: go test -race -coverprofile=coverage.out ./...
integration:
# End-to-end tests of the public client against an in-memory cinc-server-ng
# Chef Infra Server. Lives in a separate Go module (./integration) so the
# cinc-server-ng dependency never reaches the root module's consumers.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with: { go-version: '1.27' }
- run: go test -race ./...
working-directory: integration
# The cinc-server-erlang stack is only applied by hand
# (integration/run-cinc-server-erlang.sh); CI checks it still parses and
# validates, which needs no AWS credentials.
- uses: hashicorp/setup-terraform@dfe3c3f87815947d99a8997f908cb6525fc44e9e # v4.0.1
with:
terraform_wrapper: false
- run: terraform fmt -check -recursive
working-directory: integration/terraform
- run: terraform init -backend=false -input=false && terraform validate
working-directory: integration/terraform
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with: { go-version: '1.27' }
- name: golangci-lint
uses: golangci/golangci-lint-action@ba0d7d2ec06a0ea1cb5fa41b2e4a3ab91d21278a # v9.3.0
with:
# Pinned so a new linter release cannot turn a green branch red
# without a commit.
version: v2.15.0
- name: golangci-lint (integration module)
# A separate Go module, so the run above does not reach it — and
# neither did the `go vet ./...` this job replaces.
uses: golangci/golangci-lint-action@ba0d7d2ec06a0ea1cb5fa41b2e4a3ab91d21278a # v9.3.0
with:
version: v2.15.0
working-directory: integration