- Notifications
You must be signed in to change notification settings - Fork4
chore: add acceptance tests to user resource#22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -6,10 +6,12 @@ name: Tests | ||
on: | ||
pull_request: | ||
paths-ignore: | ||
-"README.md" | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
-"README.md" | ||
# Testing only needs permissions to read the repository contents. | ||
permissions: | ||
@@ -25,7 +27,7 @@ jobs: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version-file:"go.mod" | ||
cache: true | ||
- run: go mod download | ||
- run: go build -v . | ||
@@ -40,7 +42,7 @@ jobs: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version-file:"go.mod" | ||
cache: true | ||
- run: go generate ./... | ||
- name: git diff | ||
@@ -59,20 +61,21 @@ jobs: | ||
matrix: | ||
# list whatever Terraform versions here you would like to support | ||
terraform: | ||
-"1.0.*" | ||
-"1.1.*" | ||
-"1.2.*" | ||
-"1.3.*" | ||
-"1.4.*" | ||
- "1.5.*" | ||
- "1.6.*" | ||
- "1.7.*" | ||
- "1.8.*" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. As only 1.8 and 1.9 are supported versions and others have gone into end of life and also we can only test for versions that we include in our supported coder releases. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Unless this causes maintenance issues I'm inclined to leave this as-is until we want to decide on a support window. It looks like our other terraform provider supports back to 1.5 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Good enough. 👍🏼 | ||
- "1.9.*" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version-file:"go.mod" | ||
cache: true | ||
- uses: hashicorp/setup-terraform@v3 | ||
with: | ||
@@ -84,7 +87,6 @@ jobs: | ||
run: go test -v -cover ./internal/provider/ | ||
timeout-minutes: 10 | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
@@ -98,7 +100,7 @@ jobs: | ||
- uses: hashicorp/setup-terraform@v3 | ||
with: | ||
terraform_version: "1.9.*" | ||
terraform_wrapper: false | ||
- name: Check out code into the Go module directory | ||
Uh oh!
There was an error while loading.Please reload this page.