From ea3b2e5f4c7887abf9c16d65ce7b8cb487b8784d Mon Sep 17 00:00:00 2001 From: pugnack Date: Mon, 28 Apr 2025 11:52:19 +0500 Subject: [PATCH] [v3] rename .gitea to .github (#215) * rename .gitea to .github * attempt to fix lint job * attempt to fix test job * attempt to fix lint/test job --- .gitea/workflows/job_lint.yml | 29 ---------- .gitea/workflows/job_tests.yml | 53 ------------------- .../ISSUE_TEMPLATE/bug_report.md | 0 .../feature-request---enhancement.md | 0 .../ISSUE_TEMPLATE/question.md | 0 {.gitea => .github}/PULL_REQUEST_TEMPLATE.md | 0 .github/workflows/job_lint.yml | 29 ++++++++++ {.gitea => .github}/workflows/job_test.yml | 0 .github/workflows/job_tests.yml | 53 +++++++++++++++++++ .golangci.yml | 2 +- go.mod | 5 +- go.sum | 4 +- 12 files changed, 88 insertions(+), 87 deletions(-) delete mode 100644 .gitea/workflows/job_lint.yml delete mode 100644 .gitea/workflows/job_tests.yml rename {.gitea => .github}/ISSUE_TEMPLATE/bug_report.md (100%) rename {.gitea => .github}/ISSUE_TEMPLATE/feature-request---enhancement.md (100%) rename {.gitea => .github}/ISSUE_TEMPLATE/question.md (100%) rename {.gitea => .github}/PULL_REQUEST_TEMPLATE.md (100%) create mode 100644 .github/workflows/job_lint.yml rename {.gitea => .github}/workflows/job_test.yml (100%) create mode 100644 .github/workflows/job_tests.yml diff --git a/.gitea/workflows/job_lint.yml b/.gitea/workflows/job_lint.yml deleted file mode 100644 index d97e747..0000000 --- a/.gitea/workflows/job_lint.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: lint - -on: - pull_request: - types: [opened, reopened, synchronize] - branches: - - master - - v3 - - v4 - -jobs: - lint: - runs-on: ubuntu-latest - steps: - - name: checkout code - uses: actions/checkout@v4 - with: - filter: 'blob:none' - - name: setup go - uses: actions/setup-go@v5 - with: - cache-dependency-path: "**/*.sum" - go-version: 'stable' - - name: setup deps - run: go get -v ./... - - name: run lint - uses: https://github.com/golangci/golangci-lint-action@v6 - with: - version: 'latest' diff --git a/.gitea/workflows/job_tests.yml b/.gitea/workflows/job_tests.yml deleted file mode 100644 index e911576..0000000 --- a/.gitea/workflows/job_tests.yml +++ /dev/null @@ -1,53 +0,0 @@ -name: test - -on: - pull_request: - types: [opened, reopened, synchronize] - branches: - - master - - v3 - - v4 - push: - branches: - - master - - v3 - - v4 - -jobs: - test: - runs-on: ubuntu-latest - steps: - - name: checkout code - uses: actions/checkout@v4 - with: - filter: 'blob:none' - - name: checkout tests - uses: actions/checkout@v4 - with: - ref: master - filter: 'blob:none' - repository: unistack-org/micro-tests - path: micro-tests - - name: setup go - uses: actions/setup-go@v5 - with: - cache-dependency-path: "**/*.sum" - go-version: 'stable' - - name: setup go work - env: - GOWORK: /workspace/${{ github.repository_owner }}/go.work - run: | - go work init - go work use . - go work use micro-tests - - name: setup deps - env: - GOWORK: /workspace/${{ github.repository_owner }}/go.work - run: go get -v ./... - - name: run tests - env: - INTEGRATION_TESTS: yes - GOWORK: /workspace/${{ github.repository_owner }}/go.work - run: | - cd micro-tests - go test -mod readonly -v ./... || true diff --git a/.gitea/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md similarity index 100% rename from .gitea/ISSUE_TEMPLATE/bug_report.md rename to .github/ISSUE_TEMPLATE/bug_report.md diff --git a/.gitea/ISSUE_TEMPLATE/feature-request---enhancement.md b/.github/ISSUE_TEMPLATE/feature-request---enhancement.md similarity index 100% rename from .gitea/ISSUE_TEMPLATE/feature-request---enhancement.md rename to .github/ISSUE_TEMPLATE/feature-request---enhancement.md diff --git a/.gitea/ISSUE_TEMPLATE/question.md b/.github/ISSUE_TEMPLATE/question.md similarity index 100% rename from .gitea/ISSUE_TEMPLATE/question.md rename to .github/ISSUE_TEMPLATE/question.md diff --git a/.gitea/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md similarity index 100% rename from .gitea/PULL_REQUEST_TEMPLATE.md rename to .github/PULL_REQUEST_TEMPLATE.md diff --git a/.github/workflows/job_lint.yml b/.github/workflows/job_lint.yml new file mode 100644 index 0000000..c1c8e47 --- /dev/null +++ b/.github/workflows/job_lint.yml @@ -0,0 +1,29 @@ +name: lint + +on: + pull_request: + types: [opened, reopened, synchronize] + branches: + - master + - v3 + - v4 + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: checkout code + uses: actions/checkout@v4 + with: + filter: 'blob:none' + - name: setup go + uses: actions/setup-go@v5 + with: + cache-dependency-path: "**/*.sum" + go-version: 'stable' + - name: setup deps + run: go get -v ./... + - name: run lint + uses: golangci/golangci-lint-action@v6 + with: + version: 'latest' diff --git a/.gitea/workflows/job_test.yml b/.github/workflows/job_test.yml similarity index 100% rename from .gitea/workflows/job_test.yml rename to .github/workflows/job_test.yml diff --git a/.github/workflows/job_tests.yml b/.github/workflows/job_tests.yml new file mode 100644 index 0000000..4072ee6 --- /dev/null +++ b/.github/workflows/job_tests.yml @@ -0,0 +1,53 @@ +name: test + +on: + pull_request: + types: [opened, reopened, synchronize] + branches: + - master + - v3 + - v4 + push: + branches: + - master + - v3 + - v4 + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: checkout code + uses: actions/checkout@v4 + with: + filter: 'blob:none' + - name: checkout tests + uses: actions/checkout@v4 + with: + ref: master + filter: 'blob:none' + repository: unistack-org/micro-tests + path: micro-tests + - name: setup go + uses: actions/setup-go@v5 + with: + cache-dependency-path: "**/*.sum" + go-version: 'stable' + - name: setup go work + env: + GOWORK: ${{ github.workspace }}/go.work + run: | + go work init + go work use . + go work use micro-tests + - name: setup deps + env: + GOWORK: ${{ github.workspace }}/go.work + run: go get -v ./... + - name: run tests + env: + INTEGRATION_TESTS: yes + GOWORK: ${{ github.workspace }}/go.work + run: | + cd micro-tests + go test -mod readonly -v ./... || true diff --git a/.golangci.yml b/.golangci.yml index 2bb1c30..c6a7985 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,5 +1,5 @@ run: concurrency: 8 - deadline: 5m + timeout: 5m issues-exit-code: 1 tests: true diff --git a/go.mod b/go.mod index 381d1d7..5da87f4 100644 --- a/go.mod +++ b/go.mod @@ -1,13 +1,14 @@ module go.unistack.org/micro-server-http/v3 -go 1.22.0 +go 1.22.2 +toolchain go1.24.2 require ( go.unistack.org/micro-client-http/v3 v3.9.15 go.unistack.org/micro-codec-yaml/v3 v3.10.3 go.unistack.org/micro-proto/v3 v3.4.1 - go.unistack.org/micro/v3 v3.11.30 + go.unistack.org/micro/v3 v3.11.41 golang.org/x/net v0.33.0 ) diff --git a/go.sum b/go.sum index 7063604..9a3fe0b 100644 --- a/go.sum +++ b/go.sum @@ -878,8 +878,8 @@ go.unistack.org/micro-codec-yaml/v3 v3.10.3 h1:H0jM4wCSReHzEc1hnKYgXjzg171+tUE6I go.unistack.org/micro-codec-yaml/v3 v3.10.3/go.mod h1:pruYGvCULoHa6Tfah1UnTrwCzQhy0KT6D4UXEMgf+tk= go.unistack.org/micro-proto/v3 v3.4.1 h1:UTjLSRz2YZuaHk9iSlVqqsA50JQNAEK2ZFboGqtEa9Q= go.unistack.org/micro-proto/v3 v3.4.1/go.mod h1:okx/cnOhzuCX0ggl/vToatbCupi0O44diiiLLsZ93Zo= -go.unistack.org/micro/v3 v3.11.30 h1:XTLgZubSGzQL85IUMp1pTJnS1lP4eFwTZyelV/SzOMc= -go.unistack.org/micro/v3 v3.11.30/go.mod h1:fvOkXKs3wKHToWH6Mxy+aovEiDl2q4UlOCdVfJdziBU= +go.unistack.org/micro/v3 v3.11.41 h1:dP4sBLIZpMo+MWGe5bbESewK8wBzYm4Yik/67x4dEtQ= +go.unistack.org/micro/v3 v3.11.41/go.mod h1:POGU5hstnAT9LH70m8FalyQSNi2GfIew71K75JenIZk= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=