Skip to content

Commit

Permalink
update github action workflow files
Browse files Browse the repository at this point in the history
- use the Go version specified in go.mod for all workflows
- update the setup-go gh action to v5
  • Loading branch information
sikha-root committed Feb 16, 2024
1 parent 454a819 commit 1a6b6d8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Integration
on:
push:
Expand Down Expand Up @@ -25,9 +26,9 @@ jobs:
- run: |
pip install ansible-core
- uses: actions/setup-go@v3
- uses: actions/setup-go@v5
with:
go-version: '^1.21'
go-version-file: 'go.mod'

- name: Run tests
run: |
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Linters
on:
push:
Expand All @@ -14,9 +15,9 @@ jobs:
- name: Check out code
uses: actions/checkout@v3

- uses: actions/setup-go@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version-file: 'go.mod'
cache: false

- name: golangci-lint
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# This GitHub action can publish assets for release when a tag is created.
# Currently its setup to run on any tag that matches the pattern "v*" (ie. v0.1.0).
#
Expand Down Expand Up @@ -28,7 +29,7 @@ jobs:
run: git fetch --prune --unshallow
-
name: Set up Go
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: 'go.mod'
cache: true
Expand Down

0 comments on commit 1a6b6d8

Please sign in to comment.