Skip to content

Commit

Permalink
test: Add Go tests (#440)
Browse files Browse the repository at this point in the history
* TSI-2123 add basic golang test cases

* TSI-2123 add go test runner

* TSI-2123 add go test runner

* TSI-2123 add go test runner

* Test with only openapi generator command

* Test with only openapi generator command

* Test with goimport commands

* Test incorrect assertions

* Revert incorrect assertion

* Comment out linting for Go

* readd goimport installation

* Change test runner to match the build and deploy versions

* Trigger make file after go setup

* Assertion for serialization check added

* Revert gitignore changes
  • Loading branch information
hahmed-dev authored Oct 23, 2023
1 parent 3621400 commit 12b06d6
Show file tree
Hide file tree
Showing 3 changed files with 221 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/test-go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Run Go Tests
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '1.19.6'
- name: Run Tests
run: |
npm install
npm run generate.go
cd ./clients/go/test
go test
124 changes: 124 additions & 0 deletions clients/go/test/api_locales_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

79 changes: 79 additions & 0 deletions clients/go/test/api_uploads_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 12b06d6

Please sign in to comment.