-
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.
bump actions/setup go and add a new input to activate the cache on de…
…mand (#1) Signed-off-by: Augustin Husson <[email protected]>
- Loading branch information
Showing
2 changed files
with
6 additions
and
9 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,24 +4,21 @@ inputs: | |
enable_go: | ||
description: Whether to enable go specific features, such as caching. | ||
default: "false" | ||
enable_go_cache: | ||
description: Wether you want to cache the go dependencies | ||
default: "true" | ||
enable_npm: | ||
description: Whether to enable npm specific features, such as caching. | ||
default: "false" | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v3 | ||
uses: actions/setup-go@v5 | ||
if: inputs.enable_go == 'true' | ||
with: | ||
go-version: 1.21.x | ||
- uses: actions/[email protected] | ||
if: inputs.enable_go == 'true' | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
cache: ${{ inputs.enable_go_cache }} | ||
- name: Install nodejs | ||
uses: actions/setup-node@v3 | ||
if: inputs.enable_npm == 'true' | ||
|