Skip to content

Commit 145425c

Browse files
authored
Initial PR: Setup, Workspace Resource and Workspace Data source (#3)
2 parents 32cf08f + f303399 commit 145425c

Some content is hidden

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

64 files changed

+13161
-1199
lines changed

.copywrite.hcl

-21
This file was deleted.

.github/CODEOWNERS

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @hashicorp/terraform-devex
1+
* @vandyliu @sunkickr @astronomer/astro-control-plane-applications

.github/CODE_OF_CONDUCT.md

-5
This file was deleted.

.github/dependabot.yml

-3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,3 @@ updates:
1010
directory: "/"
1111
schedule:
1212
interval: "daily"
13-
# TODO: Dependabot only updates hashicorp GHAs in the template repository, the following lines can be removed for consumers of this template
14-
allow:
15-
- dependency-name: "hashicorp/*"

.github/pull_request_template.md

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
## Description
2+
3+
> Describe the purpose of this pull request.
4+
5+
## 🎟 Issue(s)
6+
7+
Related #XXX
8+
9+
## 🧪 Functional Testing
10+
11+
> List the functional testing steps to confirm this feature or fix.
12+
13+
## 📸 Screenshots
14+
15+
> Add screenshots to illustrate the validity of these changes.
16+
17+
## 📋 Checklist
18+
19+
- [ ] Rebased from the main (or release if patching) branch (before testing)
20+
- [ ] Ran `make test` before taking out of draft
21+
- [ ] Ran `make fmt` before taking out of draft
22+
- [ ] Added/updated applicable tests
23+
- [ ] Tested against [Astro-API](https://github.com/astronomer/astro/) (if necessary).
24+
- [ ] Communicated to/tagged owners of respective clients potentially impacted by these changes.
25+
- [ ] Updated any related [documentation](https://github.com/astronomer/docs/)

.github/workflows/test.yml

+15-8
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
paths-ignore:
99
- 'README.md'
1010
push:
11+
branches:
12+
- main
1113
paths-ignore:
1214
- 'README.md'
1315

@@ -18,7 +20,7 @@ permissions:
1820
jobs:
1921
# Ensure project builds before running testing matrix
2022
build:
21-
name: Build
23+
name: Build and unit test
2224
runs-on: ubuntu-latest
2325
timeout-minutes: 5
2426
steps:
@@ -29,10 +31,19 @@ jobs:
2931
cache: true
3032
- run: go mod download
3133
- run: go build -v .
32-
- name: Run linters
33-
uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804 # v4.0.0
34+
- run: make test
35+
36+
lint:
37+
name: Lint
38+
runs-on: ubuntu-latest
39+
steps:
40+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
41+
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
3442
with:
35-
version: latest
43+
go-version-file: 'go.mod'
44+
cache: true
45+
- run: make validate-fmt
46+
3647

3748
generate:
3849
runs-on: ubuntu-latest
@@ -66,10 +77,6 @@ jobs:
6677
# list whatever Terraform versions here you would like to support
6778
terraform:
6879
- '1.0.*'
69-
- '1.1.*'
70-
- '1.2.*'
71-
- '1.3.*'
72-
- '1.4.*'
7380
steps:
7481
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
7582
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,12 @@ website/node_modules
2424
*.iml
2525
*.test
2626
*.iml
27+
*.tfvars
2728

2829
website/vendor
30+
test_results
31+
vendor/
32+
.terraformrc
2933

3034
# Test exclusions
3135
!command/test-fixtures/**/*.tfstate

.golangci.yml

-27
This file was deleted.

.terraformrc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
provider_installation {
2+
dev_overrides {
3+
"registry.terraform.io/astronomer/astronomer" = "~/astronomer/astronomer-terraform-provider/bin"
4+
}
5+
direct {}
6+
}

CHANGELOG.md

-3
This file was deleted.

GNUmakefile

-6
This file was deleted.

0 commit comments

Comments
 (0)