From dc907890125b69a5964e98318720b43bfe5ebe50 Mon Sep 17 00:00:00 2001 From: Anthony Regeda Date: Tue, 9 Jan 2024 16:34:46 +0100 Subject: [PATCH] Replace Travis by Github Actions Replace "kelseyhightower" by "hexdigest" in all files. MAINTAINERS file is being removed because this repo is maintained by other contributors. --- .github/workflows/test.yaml | 23 +++++++++++++++++++++++ .travis.yml | 13 ------------- MAINTAINERS | 2 -- README.md | 8 +++----- envconfig_test.go | 6 +++--- 5 files changed, 29 insertions(+), 23 deletions(-) create mode 100644 .github/workflows/test.yaml delete mode 100644 .travis.yml delete mode 100644 MAINTAINERS diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 00000000..fcacc1a6 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,23 @@ +name: Test + +on: + push: + +jobs: + test: + name: Go Test + runs-on: ubuntu-latest + steps: + - + name: Check out code + uses: actions/checkout@v4 + - + name: Set up Go + uses: actions/setup-go@v5 + with: + go-version-file: 'go.mod' + - + name: Go Test + shell: bash + run: | + GOGC=off go test -cover -coverprofile=coverage.out -race -count 1 ./... diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 04b97aed..00000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: go - -go: - - 1.4.x - - 1.5.x - - 1.6.x - - 1.7.x - - 1.8.x - - 1.9.x - - 1.10.x - - 1.11.x - - 1.12.x - - tip diff --git a/MAINTAINERS b/MAINTAINERS deleted file mode 100644 index 6527a9f2..00000000 --- a/MAINTAINERS +++ /dev/null @@ -1,2 +0,0 @@ -Kelsey Hightower kelsey.hightower@gmail.com github.com/kelseyhightower -Travis Parker travis.parker@gmail.com github.com/teepark diff --git a/README.md b/README.md index 3446d2fe..48b2acf6 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,12 @@ # envconfig -[![Build Status](https://travis-ci.org/kelseyhightower/envconfig.svg)](https://travis-ci.org/kelseyhightower/envconfig) - ```Go -import "github.com/kelseyhightower/envconfig" +import "github.com/hexdigest/envconfig" ``` ## Documentation -See [godoc](http://godoc.org/github.com/kelseyhightower/envconfig) +See [godoc](http://godoc.org/github.com/hexdigest/envconfig) ## Usage @@ -34,7 +32,7 @@ import ( "log" "time" - "github.com/kelseyhightower/envconfig" + "github.com/hexdigest/envconfig" ) type Specification struct { diff --git a/envconfig_test.go b/envconfig_test.go index f9fc26bf..43f2f2e7 100644 --- a/envconfig_test.go +++ b/envconfig_test.go @@ -113,8 +113,8 @@ func TestProcess(t *testing.T) { os.Setenv("ENV_CONFIG_DATETIME", "2016-08-16T18:57:05Z") os.Setenv("ENV_CONFIG_MULTI_WORD_VAR_WITH_AUTO_SPLIT", "24") os.Setenv("ENV_CONFIG_MULTI_WORD_ACR_WITH_AUTO_SPLIT", "25") - os.Setenv("ENV_CONFIG_URLVALUE", "https://github.com/kelseyhightower/envconfig") - os.Setenv("ENV_CONFIG_URLPOINTER", "https://github.com/kelseyhightower/envconfig") + os.Setenv("ENV_CONFIG_URLVALUE", "https://github.com/hexdigest/envconfig") + os.Setenv("ENV_CONFIG_URLPOINTER", "https://github.com/hexdigest/envconfig") err := Process("env_config", &s) if err != nil { t.Error(err.Error()) @@ -209,7 +209,7 @@ func TestProcess(t *testing.T) { t.Errorf("expected %d, got %d", 25, s.MultiWordACRWithAutoSplit) } - u, err := url.Parse("https://github.com/kelseyhightower/envconfig") + u, err := url.Parse("https://github.com/hexdigest/envconfig") if err != nil { t.Fatalf("unexpected error: %v", err) }