From 7b6aea235af7de1b62e312e4ca028b024d4dae89 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Tue, 10 Dec 2024 17:39:36 +0300 Subject: [PATCH] add micro-tests trigger Signed-off-by: Vasiliy Tolstov --- .gitea/workflows/job_lint.yml | 8 ++++---- .gitea/workflows/job_test.yml | 8 ++++---- .gitea/workflows/job_tests.yml | 16 ++++++++++------ 3 files changed, 18 insertions(+), 14 deletions(-) diff --git a/.gitea/workflows/job_lint.yml b/.gitea/workflows/job_lint.yml index 493312a9..d97e7477 100644 --- a/.gitea/workflows/job_lint.yml +++ b/.gitea/workflows/job_lint.yml @@ -12,18 +12,18 @@ jobs: lint: runs-on: ubuntu-latest steps: - - name: checkout + - name: checkout code uses: actions/checkout@v4 with: filter: 'blob:none' - - name: setup-go + - name: setup go uses: actions/setup-go@v5 with: cache-dependency-path: "**/*.sum" go-version: 'stable' - - name: deps + - name: setup deps run: go get -v ./... - - name: lint + - name: run lint uses: https://github.com/golangci/golangci-lint-action@v6 with: version: 'latest' diff --git a/.gitea/workflows/job_test.yml b/.gitea/workflows/job_test.yml index a94dbcd6..f68cbca4 100644 --- a/.gitea/workflows/job_test.yml +++ b/.gitea/workflows/job_test.yml @@ -17,18 +17,18 @@ jobs: test: runs-on: ubuntu-latest steps: - - name: checkout + - name: checkout code uses: actions/checkout@v4 with: filter: 'blob:none' - - name: setup-go + - name: setup go uses: actions/setup-go@v5 with: cache-dependency-path: "**/*.sum" go-version: 'stable' - - name: deps + - name: setup deps run: go get -v ./... - - name: test + - name: run test env: INTEGRATION_TESTS: yes run: go test -mod readonly -v ./... diff --git a/.gitea/workflows/job_tests.yml b/.gitea/workflows/job_tests.yml index 7ce81a50..ac9f6475 100644 --- a/.gitea/workflows/job_tests.yml +++ b/.gitea/workflows/job_tests.yml @@ -17,7 +17,7 @@ jobs: test: runs-on: ubuntu-latest steps: - - name: checkout + - name: checkout code uses: actions/checkout@v4 with: filter: 'blob:none' @@ -28,22 +28,26 @@ jobs: filter: 'blob:none' repository: unistack-org/micro-tests path: micro-tests - - name: setup-go + - name: setup go uses: actions/setup-go@v5 with: cache-dependency-path: "**/*.sum" go-version: 'stable' - - name: go work + - name: setup go work env: - GOWORK=${{ github.workspace }}/go.work + GOWORK: ${{ github.workspace }}/go.work run: | + cd ../ go work init ls | grep -v go | xargs go work use - - name: deps + - name: setup deps + env: + GOWORK: ${{ github.workspace }}/go.work run: go get -v ./... - - name: test + - name: run tests env: INTEGRATION_TESTS: yes + GOWORK: ${{ github.workspace }}/go.work run: | cd micro-tests go test -mod readonly -v ./...