-
-
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.
fix: correct regex patterns in config.go
test: Improve codecov docs: add doc.go
- Loading branch information
Showing
6 changed files
with
166 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,4 +33,3 @@ jobs: | |
flags: unittests | ||
name: codecov-umbrella | ||
fail_ci_if_error: true | ||
verbose: true |
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 |
---|---|---|
|
@@ -2,6 +2,8 @@ name: Release | |
on: | ||
push: | ||
branches: master | ||
pull_request: | ||
branches: master | ||
|
||
jobs: | ||
release: | ||
|
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
Package goautomate provides tools for automating Go version checks and downloads. | ||
Do's: | ||
1. Always check for errors returned by functions in this package. | ||
2. Use GetLatestVersion() to fetch the most recent Go version information. | ||
3. Specify the correct target OS and architecture when using DownloadGo(). | ||
4. Ensure you have necessary permissions to download and write files. | ||
5. Define Go version in your project files using one of these formats: | ||
- In go.mod: go 1.x | ||
- In Dockerfile: | ||
- - FROM golang:1.x.x | ||
- - ENV GO_VERSION=1.x.x | ||
- In other files: | ||
- - go_version = "1.x.x" | ||
- - GO_VERSION: 1.x.x | ||
- - golang_version: "1.x.x" | ||
6. Use the package to automate version checks in your CI/CD pipelines. | ||
Don'ts: | ||
1. Don't assume the latest version is always compatible with your project. | ||
2. Avoid using this package to modify your system's Go installation directly. | ||
3. Don't use this package in production environments without thorough testing. | ||
4. Don't ignore version constraints specified in your go.mod file. | ||
5. Avoid manually modifying files downloaded by this package. | ||
6. Don't use non-standard formats for specifying Go versions in your project files. | ||
Example usage: | ||
latestVersion, err := goautomate.GetLatestVersion() | ||
if err != nil { | ||
log.Fatal(err) | ||
} | ||
err = goautomate.DownloadGo(latestVersion, "linux", "amd64") | ||
if err != nil { | ||
log.Fatal(err) | ||
} | ||
For more detailed information and advanced usage, refer to the README.md file. | ||
*/ | ||
package goautomate |
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
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