mirror of
https://github.com/SamyRai/turash.git
synced 2025-12-26 23:01:33 +00:00
fix: resolve Go vet module recognition issue in CI
Some checks failed
CI/CD Pipeline / backend-lint (push) Failing after 30s
CI/CD Pipeline / backend-build (push) Has been skipped
CI/CD Pipeline / frontend-lint (push) Failing after 2m13s
CI/CD Pipeline / frontend-build (push) Has been skipped
CI/CD Pipeline / e2e-test (push) Has been skipped
Some checks failed
CI/CD Pipeline / backend-lint (push) Failing after 30s
CI/CD Pipeline / backend-build (push) Has been skipped
CI/CD Pipeline / frontend-lint (push) Failing after 2m13s
CI/CD Pipeline / frontend-build (push) Has been skipped
CI/CD Pipeline / e2e-test (push) Has been skipped
- Remove redundant GO111MODULE environment variable (default in Go 1.16+) - Add cache: true to setup-go action for better performance - Ensure go mod tidy and verify run before go vet - Simplify workflow structure to match best practices
This commit is contained in:
parent
6234510530
commit
bdb7673b16
@ -70,28 +70,23 @@ jobs:
|
|||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: '1.25.3'
|
go-version: '1.25.3'
|
||||||
- name: Download dependencies
|
cache: true
|
||||||
|
- name: Install dependencies
|
||||||
working-directory: bugulma/backend
|
working-directory: bugulma/backend
|
||||||
env:
|
|
||||||
GO111MODULE: on
|
|
||||||
run: go mod download
|
run: go mod download
|
||||||
- name: Vet
|
- name: Tidy and verify modules
|
||||||
working-directory: bugulma/backend
|
working-directory: bugulma/backend
|
||||||
env:
|
|
||||||
GO111MODULE: on
|
|
||||||
run: |
|
run: |
|
||||||
go mod tidy
|
go mod tidy
|
||||||
go mod verify
|
go mod verify
|
||||||
go vet ./...
|
- name: Vet
|
||||||
|
working-directory: bugulma/backend
|
||||||
|
run: go vet ./...
|
||||||
- name: Test
|
- name: Test
|
||||||
working-directory: bugulma/backend
|
working-directory: bugulma/backend
|
||||||
env:
|
|
||||||
GO111MODULE: on
|
|
||||||
run: go test -v -race -coverprofile=coverage.out ./...
|
run: go test -v -race -coverprofile=coverage.out ./...
|
||||||
- name: Coverage
|
- name: Coverage
|
||||||
working-directory: bugulma/backend
|
working-directory: bugulma/backend
|
||||||
env:
|
|
||||||
GO111MODULE: on
|
|
||||||
run: go tool cover -html=coverage.out -o coverage.html
|
run: go tool cover -html=coverage.out -o coverage.html
|
||||||
|
|
||||||
backend-build:
|
backend-build:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user