Skip to content

Commit

Permalink
Merge pull request #15 from michimani/feature/14/update-to-go-1.17
Browse files Browse the repository at this point in the history
update Go version to 1.17 #14
  • Loading branch information
michimani authored Aug 27, 2021
2 parents 1c26686 + 0d0ec71 commit 7e0c61a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/onlytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ jobs:
name: Test
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.16
- name: Set up Go 1.17
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.17

- name: Check out code into the Go module directory
uses: actions/checkout@v2
Expand All @@ -18,5 +18,5 @@ jobs:
run: go install

- name: Test code
run: go test -v github.com/michimani/deepl-sdk-go/...
run: go test -v github.com/michimani/deepl-sdk-go/... -shuffle=on

6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
name: Test
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.16
- name: Set up Go 1.17
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.17

- name: Check out code into the Go module directory
uses: actions/checkout@v2
Expand All @@ -21,7 +21,7 @@ jobs:
run: go install

- name: Test code
run: go test -v github.com/michimani/deepl-sdk-go/...
run: go test -v github.com/michimani/deepl-sdk-go/... -shuffle=on

setup-release:
name: Setup release
Expand Down
8 changes: 2 additions & 6 deletions client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package deepl_test

import (
"fmt"
"os"
"testing"

"github.com/michimani/deepl-sdk-go"
Expand Down Expand Up @@ -64,15 +63,12 @@ func TestNewClient(t *testing.T) {
}

for _, c := range cases {
os.Unsetenv("DEEPL_API_AUTHN_KEY")
os.Unsetenv("DEEPL_API_PLAN")

t.Run(c.name, func(tt *testing.T) {
if c.authnKey != "" {
os.Setenv("DEEPL_API_AUTHN_KEY", c.authnKey)
tt.Setenv("DEEPL_API_AUTHN_KEY", c.authnKey)
}
if c.planName != "" {
os.Setenv("DEEPL_API_PLAN", c.planName)
tt.Setenv("DEEPL_API_PLAN", c.planName)
}

client, err := deepl.NewClient()
Expand Down
8 changes: 7 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
module github.com/michimani/deepl-sdk-go

go 1.16
go 1.17

require github.com/stretchr/testify v1.7.0

require (
github.com/davecgh/go-spew v1.1.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
)

0 comments on commit 7e0c61a

Please sign in to comment.