Skip to content

Commit

Permalink
Dev (#21)
Browse files Browse the repository at this point in the history
Co-authored-by: allan <[email protected]>
  • Loading branch information
Allan-Nava and allan authored Jun 26, 2024
1 parent f929dd9 commit 50a392c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/go-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ env:
API_KEY: ${{ secrets.API_KEY }}
# Setting an environment variable with the value of a configuration variable
CUSTOMER_NAME: ${{ secrets.CUSTOMER_NAME }}
CLIENT_ID: ${{ secrets.CLIENT_ID }}
#
#
jobs:
Expand Down
6 changes: 3 additions & 3 deletions test/a_main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ func TestNewCompress(t *testing.T) {

func GetCompress() (compress.ICompress, error) {
apiKey := os.Getenv("API_KEY")
customerName := os.Getenv("CUSTOMER_NAME")

c, err := compress.NewCompress(customerName, apiKey, false)
clientId := os.GetEnv("CLIENT_ID")

Check failure on line 31 in test/a_main_test.go

View workflow job for this annotation

GitHub Actions / build (1.20.x)

undefined: os.GetEnv

Check failure on line 31 in test/a_main_test.go

View workflow job for this annotation

GitHub Actions / build (1.21.x)

undefined: os.GetEnv
//
c, err := compress.NewCompress(clientId, apiKey, false)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 50a392c

Please sign in to comment.