Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement provider-defined functions for data size #6

Merged
merged 11 commits into from
Sep 15, 2024
Merged
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
2 changes: 2 additions & 0 deletions .changes/v0.1.0.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## v0.1.0 - 2024-08-08

### Added

* data-source/data_size: Implemented data source for conversion of data size units.
6 changes: 6 additions & 0 deletions .changes/v0.1.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
## v0.1.1 - 2024-09-14

### Security

* Updated hashicorp/setup-terraform action
* Bumped hashicorp/terraform-plugin-testing
5 changes: 5 additions & 0 deletions .changes/v0.2.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## v0.2.0 - 2024-09-15

### Enhanced

* Removed a little of boilerplate in data size data source
17 changes: 17 additions & 0 deletions .changes/v1.0.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
## v1.0.0 - 2024-09-15

### Added

* Provider-defined functions to convert values without storing in the state.

### Enhanced

* Added EditorConfig.

### Fixed

* CI tool configs.

### Security

* Updated dependency versions for doc generator.
11 changes: 6 additions & 5 deletions .changie.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,21 @@ kindFormat: '### {{.Kind}}'
changeFormat: '* {{.Body}}'
kinds:
- label: Added
auto: minor
auto: major
- label: Changed
auto: major
- label: Enhanced
auto: minor
- label: Deprecated
auto: minor
- label: Removed
auto: major
- label: Deprecated
auto: minor
- label: Enhanced
auto: minor
- label: Fixed
auto: patch
- label: Security
auto: patch
newlines:
afterKind: 1
beforeKind: 1
afterChangelogVersion: 2
endOfVersion: 1
17 changes: 17 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
root = true

[*]
charset = utf-8

end_of_line = LF
insert_final_newline = true
trim_trailing_whitespace = true

indent_style = space
indent_size = 4

[{GNUmakefile,Makefile,makefile}]
indent_style = tab

[{*.go,*.go.gotmpl}]
indent_style = tab
2 changes: 2 additions & 0 deletions .github/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[{*.yml,*.yaml}]
indent_size = 2
18 changes: 14 additions & 4 deletions .github/workflows/changie.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
name: Changie
name: Changelog

on:
pull_request:
branches:
- main
paths:
- .changes/unreleased/*.yaml
- .changie.yaml
- .github/workflows/changie.yml
- CHANGELOG.md

permissions:
contents: read
Expand All @@ -15,11 +18,18 @@ jobs:
name: Ensure no diff
runs-on: ubuntu-latest
steps:
- name: Check out code
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Run Changie
- name: Batch changes
continue-on-error: true
uses: miniscruff/changie-action@6dcc2533cac0495148ed4046c438487e4dceaa23 # v2.0.0
with:
version: latest
args: batch patch --dry-run
args: batch auto

- name: Ensure no diff
# language=bash
run: |
git diff --compact-summary --exit-code || \
(echo "*** Unexpected diff after code generation. Run 'make generate-docs' and commit."; exit 1)
55 changes: 37 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
name: Release

on:
workflow_dispatch:
inputs:
version:
description: 'The current version to be released (vX.Y.Z)'
required: true
type: string
push:
branches:
- main
tags:
- 'v*'

concurrency:
group: ${{ github.workflow }}
Expand All @@ -15,33 +14,53 @@ permissions:
contents: write

jobs:
goreleaser:
name: Release
environment: terraform-registry
get-version:
name: Get version
runs-on: ubuntu-latest
steps:
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4 # v6.1.0
id: import_gpg
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
fetch-depth: 0

- name: Get the latest version
id: latest
uses: miniscruff/changie-action@6dcc2533cac0495148ed4046c438487e4dceaa23 # v2.0.0
with:
args: latest

outputs:
latest: ${{ steps.latest.outputs.output }}

- name: Check out code
goreleaser:
name: Release ${{ needs.get-version.outputs.latest }}
needs:
- get-version
environment: terraform-registry
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0

- name: Set up Go
- name: Setup Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: 'go.mod'
cache: true

- name: Run GoReleaser
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4 # v6.1.0
id: import-gpg
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}

- name: Release
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0
with:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
GPG_FINGERPRINT: ${{ steps.import-gpg.outputs.fingerprint }}
Loading
Loading