diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 4e1e3c0..d91b997 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -14,12 +14,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version-file: "go.mod" cache: true @@ -28,7 +28,7 @@ jobs: run: make tools - name: Import GPG key - uses: crazy-max/ghaction-import-gpg@v5 + uses: crazy-max/ghaction-import-gpg@v6 id: import_gpg with: gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} @@ -39,7 +39,7 @@ jobs: git-chglog --config .github/changelog/config.yaml --output .release/DRAFT.md $(git describe --tags $(git rev-list --tags --max-count=1)) - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v3 + uses: goreleaser/goreleaser-action@v6 with: args: release --config .github/goreleaser.yaml --clean --release-notes=.release/DRAFT.md env: diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index b705135..e5c4077 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -21,10 +21,10 @@ jobs: timeout-minutes: 5 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version-file: "go.mod" @@ -38,15 +38,19 @@ jobs: timeout-minutes: 5 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version-file: "go.mod" + - name: Fix permissions for cache directories + run: | + chmod -R 0755 ~/.cache/go-build ~/go/pkg/mod || true + - name: Set up cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | ~/.cache/go-build @@ -78,27 +82,30 @@ jobs: max-parallel: 1 matrix: terraform-version: - - "1.0.*" - - "1.1.*" - - "1.2.*" - - "1.3.*" + - "1.7.*" + - "1.8.*" + - "1.9.*" steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Terraform - uses: hashicorp/setup-terraform@v2 + uses: hashicorp/setup-terraform@v3 with: terraform_version: ${{ matrix.terraform-version }} terraform_wrapper: false - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version-file: "go.mod" + - name: Fix permissions for cache directories + run: | + chmod -R 0755 ~/.cache/go-build ~/go/pkg/mod || true + - name: Set up cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | ~/.cache/go-build @@ -124,15 +131,19 @@ jobs: XELON_TOKEN: ${{ secrets.XELON_TOKEN }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version-file: "go.mod" + - name: Fix permissions for cache directories + run: | + chmod -R 0755 ~/.cache/go-build ~/go/pkg/mod || true + - name: Set up cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | ~/.cache/go-build @@ -150,15 +161,19 @@ jobs: timeout-minutes: 5 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version-file: "go.mod" + - name: Fix permissions for cache directories + run: | + chmod -R 0755 ~/.cache/go-build ~/go/pkg/mod || true + - name: Set up cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | ~/.cache/go-build