From 9f48ab66a4a1db4f21de2c37881469166caea74d Mon Sep 17 00:00:00 2001 From: ktong Date: Sun, 28 Apr 2024 14:34:12 -0700 Subject: [PATCH] add http module to build --- .github/dependabot.yml | 7 +++++++ .github/workflows/coverage.yml | 2 +- .github/workflows/lint.yml | 6 +++++- .github/workflows/release.yml | 3 ++- .github/workflows/test.yml | 28 ++++++++++++++++++++++++++-- CHANGELOG.md | 1 + 6 files changed, 42 insertions(+), 5 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 0db9412..b649ed6 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -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: diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index e7a2d75..f31dbf2 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -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: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 79d8e4f..6dfdbdf 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b36b63b..a56999c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -52,7 +52,8 @@ jobs: script: | const modules = [ 'gcp', - 'grpc' + 'grpc', + 'http' ] for (const module of modules) { github.rest.git.createRef({ diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a2f5298..4459c83 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 @@ -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' }} diff --git a/CHANGELOG.md b/CHANGELOG.md index c6f532b..91c55eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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).