updating to make CI filter for tests

This commit is contained in:
херетик
2023-06-02 10:40:48 +01:00
parent c67bd0ea72
commit 9b5282fbc1
6 changed files with 19 additions and 9 deletions

View File

@@ -22,4 +22,4 @@ jobs:
go-version: 1.19
- name: Test
run: go test -v ./pkg/...
run: go test -v -tags failingtests ./pkg/...

View File

@@ -223,6 +223,8 @@ const (
Patch = %d
)
var CI = %s
// Version returns a pretty printed version information string.
func Version() string {
return fmt.Sprint(
@@ -246,6 +248,7 @@ func Version() string {
Major,
Minor,
Patch,
"false",
)
path := filepath.Join(PathBase, "version.go")
if e = os.WriteFile(path, []byte(versionFileOut), 0666); check(e) {

View File

@@ -1,4 +1,4 @@
//go:build failingtests
//go:build !failingtests
package engine

View File

@@ -1,4 +1,4 @@
//go:build failingtests
//go:build !failingtests
package headers

View File

@@ -1,4 +1,4 @@
//go:build failingtests
//go:build !failingtests
package hiddenservice

View File

@@ -1,6 +1,7 @@
//go:build !local
// This can be overridden by a developer's version by setting the tag local.
// This can be overridden by a developer's version by setting the tag local
// on a modified version. This is useful for the code locations in teh logs.
package indra
@@ -14,19 +15,23 @@ import "fmt"
// which will run all these generators below and finish with a go install.
//go:generate go install ./...
import (
"fmt"
)
const (
// URL is the git URL for the repository.
URL = "github.com/indra-labs/indra"
// GitRef is the gitref, as in refs/heads/branchname.
GitRef = "refs/heads/master"
GitRef = "refs/heads/protocol"
// ParentGitCommit is the commit hash of the parent HEAD.
ParentGitCommit = "654916462d717f2f521c3234d1044a3128140b90"
ParentGitCommit = "c67bd0ea723f4af6571e49b56291ac1d8cdc6eae"
// BuildTime stores the time when the current binary was built.
BuildTime = "2023-05-18T12:39:10+01:00"
BuildTime = "2023-06-02T10:40:48+01:00"
// SemVer lists the (latest) git tag on the release.
SemVer = "v0.1.12"
// PathBase is the path base returned from runtime caller.
PathBase = "/opt/indra-labs/indra/"
PathBase = "/home/loki/indra-labs/indra/"
// Major is the major number from the tag.
Major = 0
// Minor is the minor number from the tag.
@@ -35,6 +40,8 @@ const (
Patch = 12
)
var CI = false
// Version returns a pretty printed version information string.
func Version() string {
return fmt.Sprint(