debug env version

This commit is contained in:
Lifailon
2025-03-31 10:26:41 +03:00
parent 31efa2c43c
commit 3a2f487aba
2 changed files with 6 additions and 4 deletions
+4 -2
View File
@@ -109,7 +109,7 @@ jobs:
# macOS
- name: Unit testing (files, flags and run main interface) in macOS
if: ${{ github.event.inputs.Test == 'true' && github.event.inputs.Distro == 'macos-15' }}
run: sudo go test -v --run "TestUnixFiles|TestFlags|TestMainInterface" -cover
run: sudo go test -v --run "TestUnixFiles|TestFlags|TestCommandColor|TestMainInterface" -cover
continue-on-error: true
timeout-minutes: 5
@@ -129,7 +129,7 @@ jobs:
- name: Unit testing (events, files, flags and interface) in Windows
if: ${{ github.event.inputs.Test == 'true' && github.event.inputs.Distro == 'windows-2022' }}
run: go test -v --run "TestWin.*|TestFlags|TestMainInterface|TestMockInterface" -cover
run: go test -v --run "TestWin.*|TestFlags|TestCommandColor|TestMainInterface|TestMockInterface" -cover
continue-on-error: true
timeout-minutes: 5
@@ -163,3 +163,5 @@ jobs:
with:
name: ${{ env.ARTIFACT_NAME }}
path: bin/
env:
ARTIFACT_NAME: ${{ env.ARTIFACT_NAME }}
+2 -2
View File
@@ -1,4 +1,4 @@
version := $(shell go run main.go -v)
VERSION := $(shell go run main.go -v)
prep:
@go fmt ./...
@@ -29,7 +29,7 @@ test: prep
go test -v -cover --run $(n) ./...
build: prep
@echo "Build version: $(version)"
@echo "Build version: $(VERSION)"
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o bin/lazyjournal-$(VERSION)-linux-amd64
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o bin/lazyjournal-$(VERSION)-linux-arm64
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o bin/lazyjournal-$(VERSION)-darwin-amd64