From 4d55c7b90a537cdc4005287a0c4302d83944e23d Mon Sep 17 00:00:00 2001 From: pugnack Date: Mon, 28 Apr 2025 12:26:29 +0500 Subject: [PATCH] [v4] rename .gitea to .github (#148) * rename .gitea to .github * attempt to fix lint/test job --- .github/ISSUE_TEMPLATE/question.md | 2 +- .github/workflows/job_lint.yml | 30 ++++++------- .github/workflows/job_tests.yml | 68 +++++++++++++++--------------- 3 files changed, 50 insertions(+), 50 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/question.md b/.github/ISSUE_TEMPLATE/question.md index 3d65c72..913b166 100644 --- a/.github/ISSUE_TEMPLATE/question.md +++ b/.github/ISSUE_TEMPLATE/question.md @@ -5,4 +5,4 @@ title: '' labels: '' assignees: '' ---- \ No newline at end of file +--- diff --git a/.github/workflows/job_lint.yml b/.github/workflows/job_lint.yml index 4692f59..2ae5a2d 100644 --- a/.github/workflows/job_lint.yml +++ b/.github/workflows/job_lint.yml @@ -12,18 +12,18 @@ 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 35d6225..0dc655c 100644 --- a/.github/workflows/job_tests.yml +++ b/.github/workflows/job_tests.yml @@ -14,37 +14,37 @@ 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