From ccfce7752bba5a6a7b3782c1e770e63efd565368 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Wed, 12 Apr 2023 16:40:16 +0800 Subject: [PATCH 1/5] improve go sample workflow gh --- .github/workflows/samples-go.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/samples-go.yaml b/.github/workflows/samples-go.yaml index a46a7ea9c22f..b8ba647386c1 100644 --- a/.github/workflows/samples-go.yaml +++ b/.github/workflows/samples-go.yaml @@ -31,6 +31,7 @@ jobs: run: | go get github.com/labstack/echo/v4/middleware@v4.9.0 go get github.com/labstack/echo/v4@v4.9.0 + go get github.com/gorilla/mux - name: Build working-directory: ${{ matrix.sample }} run: go test -v From 33dee47c8fff38de79b019365672a1ce6e508310 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Wed, 12 Apr 2023 17:17:27 +0800 Subject: [PATCH 2/5] update --- .github/workflows/samples-go.yaml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/samples-go.yaml b/.github/workflows/samples-go.yaml index b8ba647386c1..ca3886ef756e 100644 --- a/.github/workflows/samples-go.yaml +++ b/.github/workflows/samples-go.yaml @@ -5,10 +5,12 @@ on: paths: - 'samples/server/petstore/go-echo-server/**' - 'samples/server/petstore/go-api-server/**' + - 'samples/server/petstore/go-chi-server/**' pull_request: paths: - 'samples/server/petstore/go-echo-server/**' - 'samples/server/petstore/go-api-server/**' + - 'samples/server/petstore/go-chi-server/**' jobs: build: @@ -20,18 +22,13 @@ jobs: sample: - samples/server/petstore/go-echo-server/ - samples/server/petstore/go-api-server/ + - samples/server/petstore/go-chi-server/ steps: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: '>=1.17.0' + go-version: "stable" - run: go version - - name: Install + - name: Run test working-directory: ${{ matrix.sample }} - run: | - go get github.com/labstack/echo/v4/middleware@v4.9.0 - go get github.com/labstack/echo/v4@v4.9.0 - go get github.com/gorilla/mux - - name: Build - working-directory: ${{ matrix.sample }} - run: go test -v + run: go test -mod=mod -v From 129bc30cfbe1638ca7758d0ee8290a88bf60e824 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Wed, 12 Apr 2023 17:18:05 +0800 Subject: [PATCH 3/5] trigger build --- samples/server/petstore/go-api-server/README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/samples/server/petstore/go-api-server/README.md b/samples/server/petstore/go-api-server/README.md index 7a0c3bb1119a..e989b570dc00 100644 --- a/samples/server/petstore/go-api-server/README.md +++ b/samples/server/petstore/go-api-server/README.md @@ -31,3 +31,6 @@ Once image is built use ``` docker run --rm -it petstoreserver ``` + + + From 0bed3759c47d55a3540b13e5cd24a2246c285993 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Wed, 12 Apr 2023 17:21:59 +0800 Subject: [PATCH 4/5] Revert "trigger build" This reverts commit 129bc30cfbe1638ca7758d0ee8290a88bf60e824. --- samples/server/petstore/go-api-server/README.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/samples/server/petstore/go-api-server/README.md b/samples/server/petstore/go-api-server/README.md index e989b570dc00..7a0c3bb1119a 100644 --- a/samples/server/petstore/go-api-server/README.md +++ b/samples/server/petstore/go-api-server/README.md @@ -31,6 +31,3 @@ Once image is built use ``` docker run --rm -it petstoreserver ``` - - - From 38be1316fca925f99ed134268e13d33bd7fb6f7e Mon Sep 17 00:00:00 2001 From: William Cheng Date: Wed, 12 Apr 2023 17:22:45 +0800 Subject: [PATCH 5/5] comment out go chi server tests --- .github/workflows/samples-go.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/samples-go.yaml b/.github/workflows/samples-go.yaml index ca3886ef756e..73155482dcdd 100644 --- a/.github/workflows/samples-go.yaml +++ b/.github/workflows/samples-go.yaml @@ -5,12 +5,12 @@ on: paths: - 'samples/server/petstore/go-echo-server/**' - 'samples/server/petstore/go-api-server/**' - - 'samples/server/petstore/go-chi-server/**' + #- 'samples/server/petstore/go-chi-server/**' pull_request: paths: - 'samples/server/petstore/go-echo-server/**' - 'samples/server/petstore/go-api-server/**' - - 'samples/server/petstore/go-chi-server/**' + #- 'samples/server/petstore/go-chi-server/**' jobs: build: @@ -22,7 +22,7 @@ jobs: sample: - samples/server/petstore/go-echo-server/ - samples/server/petstore/go-api-server/ - - samples/server/petstore/go-chi-server/ + #- samples/server/petstore/go-chi-server/ steps: - uses: actions/checkout@v3 - uses: actions/setup-go@v3