diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fb5ca2c..156a083 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,7 +28,7 @@ jobs: name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.16 + go-version: 1.17 - name: Import GPG key id: import_gpg diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4a251b0..8ee9178 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,13 +17,13 @@ jobs: build: name: Build runs-on: ubuntu-latest - timeout-minutes: 5 + timeout-minutes: 15 steps: - name: Set up Go uses: actions/setup-go@v2.1.3 with: - go-version: '1.15' + go-version: '1.17' id: go - name: Check out code into the Go module directory @@ -46,10 +46,29 @@ jobs: echo "If this fails you should run \"terraform fmt -recursive\"" terraform fmt -recursive -check + - name: Import GPG key + id: import_gpg + uses: hashicorp/ghaction-import-gpg@v2.1.0 + env: + # These secrets will need to be configured for the repository: + GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} + PASSPHRASE: ${{ secrets.PASSPHRASE }} + + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v2 + with: + version: latest + args: release --snapshot --rm-dist + env: + GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} + # GitHub sets this automatically + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Build run: | go build -v . + # run acceptance tests in a matrix with Terraform core versions test: name: Matrix Test @@ -63,13 +82,13 @@ jobs: matrix: # list whatever Terraform versions here you would like to support terraform: - - '0.15.3' + - '1.1.5' steps: - name: Set up Go uses: actions/setup-go@v2.1.3 with: - go-version: '1.15' + go-version: '1.17' id: go - name: Check out code into the Go module directory @@ -80,7 +99,7 @@ jobs: go mod download - name: TF acceptance tests - timeout-minutes: 10 + timeout-minutes: 15 env: TF_ACC: "1" TF_ACC_TERRAFORM_VERSION: ${{ matrix.terraform }} diff --git a/.gitignore b/.gitignore index 9210ee5..c7962d9 100644 --- a/.gitignore +++ b/.gitignore @@ -25,6 +25,9 @@ website/node_modules *.iml *.test +docs/ +!docs/.gitkeep + internal/provider/docs/build/* !internal/provider/docs/build/.gitkeep diff --git a/.goreleaser.yml b/.goreleaser.yml index 77d6355..395f953 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -4,6 +4,7 @@ before: hooks: # this is just an example and not a requirement for provider building/publishing - go mod tidy + - make docs builds: - env: # goreleaser does not work with CGO, it could also complicate diff --git a/docs/.gitkeep b/docs/.gitkeep new file mode 100644 index 0000000..e69de29