From a0bc38b9badba4a107d3ccf517968df687ea0c1a Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Thu, 20 Mar 2025 23:20:43 +0100 Subject: [PATCH] chore(ci): workflows formating --- .github/workflows/release.yml | 6 ------ .github/workflows/test.yml | 14 ++++---------- 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7950c3a..b9ebf55 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,15 +1,10 @@ -# Terraform Provider release workflow. name: Release -# This GitHub action creates a release when a tag that matches the pattern -# "v*" (e.g. v0.1.0) is created. on: push: tags: - 'v*' -# Releases need permissions to read and write the repository contents. -# GitHub considers creating releases and uploading assets as writing contents. permissions: contents: write @@ -36,6 +31,5 @@ jobs: with: args: release --clean env: - # GitHub sets the GITHUB_TOKEN secret automatically. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 25b0cfc..466d098 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,22 +1,19 @@ -# Terraform Provider testing workflow. name: Tests -# This GitHub action runs your tests for each pull request and push. -# Optionally, you can turn it on using a schedule for regular testing. on: pull_request: paths-ignore: + - 'CHANGELOG.md' - 'README.md' push: paths-ignore: + - 'CHANGELOG.md' - 'README.md' -# Testing only needs permissions to read the repository contents. permissions: contents: read jobs: - # Ensure project builds before running testing matrix build: name: Build runs-on: ubuntu-latest @@ -33,7 +30,6 @@ jobs: uses: golangci/golangci-lint-action@55c2c1448f86e01eaae002a5a3a9624417608d84 # v6.5.2 with: version: latest - generate: runs-on: ubuntu-latest steps: @@ -48,19 +44,17 @@ jobs: run: | git diff --compact-summary --exit-code || \ (echo; echo "Unexpected difference in directories after code generation. Run 'go generate ./...' command and commit."; exit 1) - - # Run acceptance tests in a matrix with Terraform CLI versions test: name: Terraform Provider Acceptance Tests needs: build runs-on: ubuntu-latest timeout-minutes: 15 strategy: - fail-fast: false + fail-fast: true matrix: - # list whatever Terraform versions here you would like to support terraform: - '1.10.*' + - '1.11.*' steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0