Skip to content

Commit

Permalink
add http module to build
Browse files Browse the repository at this point in the history
  • Loading branch information
ktong committed Apr 28, 2024
1 parent 2bee318 commit 9f48ab6
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 5 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ updates:
schedule:
interval: weekly

- package-ecosystem: gomod
directory: /http
labels:
- Skip-Changelog
schedule:
interval: weekly

- package-ecosystem: github-actions
directory: /
labels:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
if: ${{ github.actor != 'dependabot[bot]' }}
strategy:
matrix:
module: [ '', 'gcp', 'grpc' ]
module: [ '', 'gcp', 'grpc', 'http' ]
name: Coverage
runs-on: ubuntu-latest
steps:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ jobs:
lint:
strategy:
matrix:
module: [ '', 'gcp', 'grpc', 'examples/grpc' ]
module: [
'', 'gcp',
'grpc', 'examples/grpc',
'http', 'examples/http'
]
name: Lint
runs-on: ubuntu-latest
steps:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ jobs:
script: |
const modules = [
'gcp',
'grpc'
'grpc',
'http'
]
for (const module of modules) {
github.rest.git.createRef({
Expand Down
28 changes: 26 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ jobs:
test:
strategy:
matrix:
module: [ '', 'gcp', 'grpc', 'examples/grpc' ]
module: [
'', 'gcp',
'grpc', 'examples/grpc'
]
go-version: [ 'stable', 'oldstable' ]
name: Test
runs-on: ubuntu-latest
Expand All @@ -27,11 +30,32 @@ jobs:
- name: Test
run: go test -shuffle=on -v ./...
working-directory: ${{ matrix.module }}
test-http:
strategy:
matrix:
module: [
'http', 'examples/http'
]
go-version: [ 'stable' ]
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
cache-dependency-path: "**/go.sum"
- name: Race Test
run: go test -v -shuffle=on -count=10 -race ./...
working-directory: ${{ matrix.module }}
- name: Test
run: go test -shuffle=on -v ./...
working-directory: ${{ matrix.module }}
all:
if: ${{ always() }}
runs-on: ubuntu-latest
name: All Tests
needs: test
needs: [test, test-http]
steps:
- name: Check test matrix status
if: ${{ needs.test.result != 'success' }}
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
- Support gRPC server (#15).
- Add nilgo.Run (#22).
- Support GCP Cloud Run (#24).
- Support HTTP server (#26).

0 comments on commit 9f48ab6

Please sign in to comment.