6
0
mirror of https://github.com/grdl/git-get.git synced 2026-02-04 19:09:45 +00:00

Fix release github action and make it consistent with the CI workflow

This commit is contained in:
Grzegorz Dlugoszewski
2025-08-23 23:34:56 +02:00
parent 93378bc8fe
commit 1ac43d75e0
2 changed files with 17 additions and 4 deletions

View File

@@ -25,7 +25,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v5
with:
fetch-depth: 2
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
@@ -72,7 +72,6 @@ jobs:
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v6
# TODO: Fix linting errors
continue-on-error: true
with:

View File

@@ -26,14 +26,28 @@ jobs:
go-version: '1.24'
cache: true
- name: Download dependencies
run: go mod download
- name: Verify dependencies
run: go mod verify
- name: Set up Git (for tests)
run: |
git config --global user.email "test@example.com"
git config --global user.name "CI Test"
- name: Run tests
run: go test -race ./...
- name: Run lints
uses: golangci/golangci-lint-action@v6
# TODO: Fix linting errors
continue-on-error: true
with:
version: latest
args: --timeout=5m
- name: Validate GoReleaser config
uses: goreleaser/goreleaser-action@v6
with:
@@ -63,4 +77,4 @@ jobs:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GORELEASER_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GORELEASER_TOKEN }}