Skip to content

Commit

Permalink
Merge pull request #30 from Xelon-AG/chore/upgrade-github-actions
Browse files Browse the repository at this point in the history
chore: upgrade GitHub actions
  • Loading branch information
pavel-github authored Nov 24, 2024
2 parents c5606eb + b92ea37 commit 1486d30
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 23 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand All @@ -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:
Expand Down
53 changes: 34 additions & 19 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 1486d30

Please sign in to comment.