From a538a8e022ee4f2a0b662e081866b52302de2b1d Mon Sep 17 00:00:00 2001 From: pugnack Date: Fri, 25 Apr 2025 00:30:27 +0500 Subject: [PATCH 1/2] rename .gitea to .github --- {.gitea => .github}/ISSUE_TEMPLATE/bug_report.md | 0 .../ISSUE_TEMPLATE/feature-request---enhancement.md | 0 {.gitea => .github}/ISSUE_TEMPLATE/question.md | 0 {.gitea => .github}/PULL_REQUEST_TEMPLATE.md | 0 {.gitea => .github}/workflows/job_lint.yml | 0 {.gitea => .github}/workflows/job_test.yml | 0 {.gitea => .github}/workflows/job_tests.yml | 0 7 files changed, 0 insertions(+), 0 deletions(-) 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%) rename {.gitea => .github}/workflows/job_lint.yml (100%) rename {.gitea => .github}/workflows/job_test.yml (100%) rename {.gitea => .github}/workflows/job_tests.yml (100%) 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/.gitea/workflows/job_lint.yml b/.github/workflows/job_lint.yml similarity index 100% rename from .gitea/workflows/job_lint.yml rename to .github/workflows/job_lint.yml 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/.gitea/workflows/job_tests.yml b/.github/workflows/job_tests.yml similarity index 100% rename from .gitea/workflows/job_tests.yml rename to .github/workflows/job_tests.yml From 1b54a35faef1dafe2f2861d369bab3d54eaa4b40 Mon Sep 17 00:00:00 2001 From: pugnack Date: Fri, 25 Apr 2025 00:32:26 +0500 Subject: [PATCH 2/2] attempt to fix lint/test job --- .github/workflows/job_lint.yml | 36 +++++++-------- .github/workflows/job_tests.yml | 80 ++++++++++++++++----------------- .golangci.yml | 2 +- 3 files changed, 59 insertions(+), 59 deletions(-) diff --git a/.github/workflows/job_lint.yml b/.github/workflows/job_lint.yml index d97e747..c1c8e47 100644 --- a/.github/workflows/job_lint.yml +++ b/.github/workflows/job_lint.yml @@ -4,26 +4,26 @@ on: pull_request: types: [opened, reopened, synchronize] branches: - - master - - v3 - - v4 + - 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' + - 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/.github/workflows/job_tests.yml b/.github/workflows/job_tests.yml index e911576..4072ee6 100644 --- a/.github/workflows/job_tests.yml +++ b/.github/workflows/job_tests.yml @@ -4,50 +4,50 @@ on: pull_request: types: [opened, reopened, synchronize] branches: - - master - - v3 - - v4 + - master + - v3 + - v4 push: branches: - - master - - v3 - - v4 + - 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 + - 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