Skip to content

Commit

Permalink
Adding Pipeline to Test GO SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
hermeswaldemarin committed Dec 5, 2023
1 parent 6f0020e commit 4f33fca
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Go SDK
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup Go
uses: actions/setup-go@v4

- name: Run Tests
run:
go mod download github.com/go-resty/resty/v2
go fmt ./...
go clean -testcache
go test ./...
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ go 1.15

require (
github.com/go-resty/resty/v2 v2.7.0
github.com/procyon-projects/chrono v1.1.2
)
7 changes: 7 additions & 0 deletions sdk/jsonmodels/CustomFieldValue.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package jsonmodels

type CustomFieldValue struct {
Name string `json:"name"`
Type string `json:"type"`
Value string `json:"value"`
}
3 changes: 3 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

echo "run golang mod"
go mod download github.com/go-resty/resty/v2

echo "run golang fmt"
go fmt ./...

Expand Down

0 comments on commit 4f33fca

Please sign in to comment.