File tree 8 files changed +13
-13
lines changed
8 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 48
48
49
49
# Install gotestfmt on the VM running the action.
50
50
- name : Set up gotestfmt
51
- uses : haveyoudebuggedit/gotestfmt-action@v1
51
+ uses : haveyoudebuggedit/gotestfmt-action@v2
52
52
with :
53
53
# Optional: pass GITHUB_TOKEN to avoid rate limiting.
54
54
token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 6
6
"os"
7
7
"path/filepath"
8
8
9
- "github.com/haveyoudebuggedit/gotestfmt"
9
+ "github.com/haveyoudebuggedit/gotestfmt/v2 "
10
10
)
11
11
12
12
// ciEnvironments maps environment variables to directories to check for templates.
Original file line number Diff line number Diff line change 1
- module github.com/haveyoudebuggedit/gotestfmt
1
+ module github.com/haveyoudebuggedit/gotestfmt/v2
2
2
3
3
go 1.16
Original file line number Diff line number Diff line change 7
7
"io/ioutil"
8
8
"path"
9
9
10
- "github.com/haveyoudebuggedit/gotestfmt/parser"
11
- "github.com/haveyoudebuggedit/gotestfmt/renderer"
12
- "github.com/haveyoudebuggedit/gotestfmt/tokenizer"
10
+ "github.com/haveyoudebuggedit/gotestfmt/v2/ parser"
11
+ "github.com/haveyoudebuggedit/gotestfmt/v2/ renderer"
12
+ "github.com/haveyoudebuggedit/gotestfmt/v2/ tokenizer"
13
13
)
14
14
15
15
//go:embed .gotestfmt/*.gotpl
Original file line number Diff line number Diff line change 8
8
"strings"
9
9
"time"
10
10
11
- "github.com/haveyoudebuggedit/gotestfmt/tokenizer"
11
+ "github.com/haveyoudebuggedit/gotestfmt/v2/ tokenizer"
12
12
)
13
13
14
14
// Parse creates a new formatter that reads the go test output from the input reader, formats it and writes
Original file line number Diff line number Diff line change 9
9
"strings"
10
10
"testing"
11
11
12
- "github.com/haveyoudebuggedit/gotestfmt/parser"
13
- "github.com/haveyoudebuggedit/gotestfmt/testutil"
14
- "github.com/haveyoudebuggedit/gotestfmt/tokenizer"
12
+ "github.com/haveyoudebuggedit/gotestfmt/v2/ parser"
13
+ "github.com/haveyoudebuggedit/gotestfmt/v2/ testutil"
14
+ "github.com/haveyoudebuggedit/gotestfmt/v2/ tokenizer"
15
15
)
16
16
17
17
// TestParse takes the *.tokenizer.json and *.parser.json files in ../testdata, runs the tokenizer files as input
Original file line number Diff line number Diff line change 5
5
"fmt"
6
6
"text/template"
7
7
8
- "github.com/haveyoudebuggedit/gotestfmt/parser"
8
+ "github.com/haveyoudebuggedit/gotestfmt/v2/ parser"
9
9
)
10
10
11
11
// Render takes the two input channels from the parser and renders them into text output fragments.
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ import (
11
11
"strings"
12
12
"testing"
13
13
14
- "github.com/haveyoudebuggedit/gotestfmt/testutil"
15
- "github.com/haveyoudebuggedit/gotestfmt/tokenizer"
14
+ "github.com/haveyoudebuggedit/gotestfmt/v2/ testutil"
15
+ "github.com/haveyoudebuggedit/gotestfmt/v2/ tokenizer"
16
16
)
17
17
18
18
// TestTokenization reads the *.txt and *.tokenizer.json files from the ../testdata directory, then runs
You can’t perform that action at this time.
0 commit comments