-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor GitHub workflows and update Terraform configurations for imp…
…roved repository management
- Loading branch information
Dave Arnold
committed
Feb 19, 2025
1 parent
97a35c8
commit 69fe4c6
Showing
10 changed files
with
223 additions
and
220 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| name: "Terraform Test and Tag" | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| pull_request: | ||
| branches: | ||
| - main | ||
|
|
||
| permissions: | ||
| contents: write | ||
| pull-requests: read | ||
|
|
||
| jobs: | ||
| terraform: | ||
| name: "Terraform Test" | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Setup Terraform | ||
| uses: hashicorp/setup-terraform@v3 | ||
| with: | ||
| terraform_version: "~>1.6.0" | ||
| terraform_wrapper: false | ||
|
|
||
| - name: Terraform Format | ||
| id: fmt | ||
| run: terraform fmt -check | ||
| continue-on-error: false | ||
|
|
||
| - name: Terraform Init | ||
| id: init | ||
| run: terraform init -backend=false | ||
|
|
||
| - name: Terraform Validate | ||
| id: validate | ||
| run: terraform validate | ||
|
|
||
| - name: Run Terraform Tests | ||
| id: test | ||
| run: terraform test | ||
|
|
||
| - name: Bump version and push tag | ||
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | ||
| uses: anothrNick/github-tag-action@1.67.0 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| DEFAULT_BUMP: patch | ||
| WITH_V: true |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.