Skip to content

Commit

Permalink
ci: run examples in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
areknoster committed May 20, 2024
1 parent 4258e4d commit 741b248
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
with:
path: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}
- name: Test
run: go test -v -count=1 -race -shuffle=on ./...
run: go list -f '{{.Dir}}' -m | xargs go test -v -count=1 -race -shuffle=on ./...
test-coverage:
runs-on: ubuntu-latest
needs: test
Expand Down
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,4 @@
# Dependency directories (remove the comment below to include it)
# vendor/

# Go workspace file
go.work

.DS_Store
4 changes: 2 additions & 2 deletions examples/awss3/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ module github.com/areknoster/hypert/examples/awss3
go 1.22.0

require (
github.com/areknoster/hypert v0.0.0-00010101000000-000000000000
github.com/areknoster/hypert v0.3.2
github.com/aws/aws-sdk-go-v2/config v1.27.10
github.com/aws/aws-sdk-go-v2/service/s3 v1.53.1
)

require (
github.com/aws/aws-sdk-go-v2 v1.26.1 // indirect
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.2 // indirect
github.com/aws/aws-sdk-go-v2/config v1.27.10 // indirect
github.com/aws/aws-sdk-go-v2/credentials v1.17.10 // indirect
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.1 // indirect
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.5 // indirect
Expand Down
2 changes: 2 additions & 0 deletions examples/awss3/go.sum
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
github.com/areknoster/hypert v0.3.2 h1:EbsNj38hi2DiioBdls5bo+AfyAjQZaMvQS3iIh53IVw=
github.com/areknoster/hypert v0.3.2/go.mod h1:NNdfmu3cNXhT2LksLEPI5ax+9pnInoHgKqTCRS8h8E0=
github.com/aws/aws-sdk-go-v2 v1.26.1 h1:5554eUqIYVWpU0YmeeYZ0wU64H2VLBs8TlhRB2L+EkA=
github.com/aws/aws-sdk-go-v2 v1.26.1/go.mod h1:ffIFB97e2yNsv4aTSGkqtHnppsIJzw7G7BReUZ3jCXM=
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.2 h1:x6xsQXGSmW6frevwDA+vi/wqhp1ct18mVXYN08/93to=
Expand Down
4 changes: 1 addition & 3 deletions examples/nasa/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@ module github.com/areknoster/hypert/examples/nasa

go 1.22.0

replace github.com/areknoster/hypert => ../../

require github.com/areknoster/hypert v0.0.0-00010101000000-000000000000
require github.com/areknoster/hypert v0.3.2
2 changes: 2 additions & 0 deletions examples/nasa/go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github.com/areknoster/hypert v0.3.2 h1:EbsNj38hi2DiioBdls5bo+AfyAjQZaMvQS3iIh53IVw=
github.com/areknoster/hypert v0.3.2/go.mod h1:NNdfmu3cNXhT2LksLEPI5ax+9pnInoHgKqTCRS8h8E0=
7 changes: 7 additions & 0 deletions go.work
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
go 1.22.3

use (
.
./examples/awss3
./examples/nasa
)
2 changes: 2 additions & 0 deletions go.work.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg=
github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo=

0 comments on commit 741b248

Please sign in to comment.