File tree Expand file tree Collapse file tree 5 files changed +11
-13
lines changed Expand file tree Collapse file tree 5 files changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -12,21 +12,20 @@ jobs:
12
12
runs-on : ubuntu-latest
13
13
steps :
14
14
- uses : actions/checkout@v2
15
+ with :
16
+ submodules : true
15
17
16
18
- name : Set up Go
17
19
uses : actions/setup-go@v2
18
20
with :
19
21
go-version : 1.16
20
22
21
- - name : Download test resources
22
- run : ./testdata/helper.sh fetch
23
-
24
23
- name : Build
25
24
run : go build -o a
26
25
27
26
- name : Test
28
27
run : go test -timeout 1800s -v -race -coverprofile=coverage.txt -covermode=atomic
29
-
28
+
30
29
- name : Codecov
31
30
# You may pin to the exact commit or the version.
32
31
# uses: codecov/codecov-action@29386c70ef20e286228c72b668a06fd0e8399192
Original file line number Diff line number Diff line change 11
11
# Output of the go coverage tool, specifically when used with LiteIDE
12
12
* .out
13
13
* .swp
14
- testdata /gold /*
15
14
16
- .vscode /*
15
+ .vscode /*
Original file line number Diff line number Diff line change
1
+ [submodule "testdata/gold "]
2
+ path = testdata/gold
3
+ url = https://github.com/goretk/testdata.git
Original file line number Diff line number Diff line change @@ -11,13 +11,9 @@ information.
11
11
12
12
A lot of tests in the library requires test resources. Due to the total size of
13
13
these files, they are not included with the source code. The ` testdata ` folder
14
- contains a helper script that can be used to either download the resource files
15
- or to build them. For building the resources locally ` docker ` is used.
16
-
17
- Download latest collection of test resources:
18
- ```
19
- ./testdata/helper.sh fetch
20
- ```
14
+ contains a helper script that can be used to build them. For building the
15
+ resources locally ` docker ` is used. They are also stored in a separate repo that
16
+ can be accessed by running: ` git submodule update --init --recursive `
21
17
22
18
Build missing resources:
23
19
```
You can’t perform that action at this time.
0 commit comments