1
0
mirror of https://github.com/go-task/task.git synced 2025-11-23 22:24:45 +02:00

feat: use semver package for taskfile schema version

This commit is contained in:
Pete Davison
2023-02-08 10:21:43 +00:00
parent 28c5f4a635
commit 8b72c86ba5
9 changed files with 53 additions and 68 deletions

View File

@@ -11,6 +11,7 @@ import (
"strings"
"testing"
"github.com/Masterminds/semver/v3"
"github.com/stretchr/testify/assert"
"github.com/go-task/task/v3"
@@ -726,9 +727,9 @@ func TestCyclicDep(t *testing.T) {
func TestTaskVersion(t *testing.T) {
tests := []struct {
Dir string
Version string
Version *semver.Version
}{
{"testdata/version/v2", "2"},
{"testdata/version/v2", semver.MustParse("2")},
}
for _, test := range tests {