Skip to content

Commit 7b3d2be

Browse files
committed
Move test data to new repo
1 parent 147d337 commit 7b3d2be

File tree

5 files changed

+11
-13
lines changed

5 files changed

+11
-13
lines changed

.github/workflows/go.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,20 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v2
15+
with:
16+
submodules: true
1517

1618
- name: Set up Go
1719
uses: actions/setup-go@v2
1820
with:
1921
go-version: 1.16
2022

21-
- name: Download test resources
22-
run: ./testdata/helper.sh fetch
23-
2423
- name: Build
2524
run: go build -o a
2625

2726
- name: Test
2827
run: go test -timeout 1800s -v -race -coverprofile=coverage.txt -covermode=atomic
29-
28+
3029
- name: Codecov
3130
# You may pin to the exact commit or the version.
3231
# uses: codecov/codecov-action@29386c70ef20e286228c72b668a06fd0e8399192

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,5 @@
1111
# Output of the go coverage tool, specifically when used with LiteIDE
1212
*.out
1313
*.swp
14-
testdata/gold/*
1514

16-
.vscode/*
15+
.vscode/*

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "testdata/gold"]
2+
path = testdata/gold
3+
url = https://github.com/goretk/testdata.git

CONTRIBUTING.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,9 @@ information.
1111

1212
A lot of tests in the library requires test resources. Due to the total size of
1313
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`
2117

2218
Build missing resources:
2319
```

testdata/gold

Submodule gold added at 9e6322f

0 commit comments

Comments
 (0)