@@ -13,42 +13,42 @@ jobs:
1313
1414 strategy :
1515 matrix :
16- os : [ ubuntu-latest, macos-latest ]
17- go : [ '1.11.13', '1.12.17', '1.13.15', '1.14.7', '1.15' ]
16+ os : [ubuntu-latest, macos-latest]
17+ go : ['1.11.13', '1.12.17', '1.13.15', '1.14.7', '1.15']
1818 fail-fast : false
1919 steps :
20- - if : startsWith(matrix.os, 'macos')
21- run : brew update
20+ - if : startsWith(matrix.os, 'macos')
21+ run : brew update
2222
23- - uses : actions/setup-go@v2
24- with :
25- go-version : ${{ matrix.go }}
23+ - uses : actions/setup-go@v2
24+ with :
25+ go-version : ${{ matrix.go }}
2626
27- - name : Get Build Tools
28- run : |
29- go get github.com/mattn/goveralls
30- go get golang.org/x/tools/cmd/cover
27+ - name : Get Build Tools
28+ run : |
29+ go get github.com/mattn/goveralls
30+ go get golang.org/x/tools/cmd/cover
3131
32- - name : Add $GOPATH/bin to $PATH
33- run : |
34- echo "::add-path::$(go env GOPATH)/bin"
32+ - name : Add $GOPATH/bin to $PATH
33+ run : |
34+ echo "::add-path::$(go env GOPATH)/bin"
3535
36- - uses : actions/checkout@v2
36+ - uses : actions/checkout@v2
3737
38- - name : Setup goveralls
39- run : goveralls -repotoken 3qJVUE0iQwqnCbmNcDsjYu1nh4J4KIFXx -parallel
38+ - name : Setup goveralls
39+ run : goveralls -repotoken 3qJVUE0iQwqnCbmNcDsjYu1nh4J4KIFXx -parallel
4040
41- - name : Test1
42- run : go test -race -v . -tags ""
41+ - name : ' Tags: default '
42+ run : go test -race -v . -tags ""
4343
44- - name : Test2
45- run : go test -race -v . -tags "libsqlite3"
44+ - name : ' Tags: libsqlite3 '
45+ run : go test -race -v . -tags "libsqlite3"
4646
47- - name : Test3
48- run : go test -race -v . -tags "sqlite_allow_uri_authority sqlite_app_armor sqlite_foreign_keys sqlite_fts5 sqlite_icu sqlite_introspect sqlite_json sqlite_preupdate_hook sqlite_secure_delete sqlite_see sqlite_stat4 sqlite_trace sqlite_userauth sqlite_vacuum_incr sqlite_vtable sqlite_unlock_notify"
47+ - name : ' Tags: full '
48+ run : go test -race -v . -tags "sqlite_allow_uri_authority sqlite_app_armor sqlite_foreign_keys sqlite_fts5 sqlite_icu sqlite_introspect sqlite_json sqlite_preupdate_hook sqlite_secure_delete sqlite_see sqlite_stat4 sqlite_trace sqlite_userauth sqlite_vacuum_incr sqlite_vtable sqlite_unlock_notify"
4949
50- - name : Test4
51- run : go test -race -v . -tags "sqlite_vacuum_full"
50+ - name : ' Tags: vacuum '
51+ run : go test -race -v . -tags "sqlite_vacuum_full"
5252
5353 test-windows :
5454 name : Test for Windows
@@ -59,73 +59,73 @@ jobs:
5959
6060 strategy :
6161 matrix :
62- go : [ '1.11.13', '1.12.17', '1.13.15', '1.14.7', '1.15' ]
62+ go : ['1.11.13', '1.12.17', '1.13.15', '1.14.7', '1.15']
6363 fail-fast : false
6464 steps :
65- - uses : msys2/setup-msys2@v2
66- with :
67- update : true
68- install : mingw-w64-x86_64-toolchain mingw-w64-x86_64-sqlite3
69- msystem : MINGW64
70- path-type : inherit
71-
72- - uses : actions/setup-go@v2
73- with :
74- go-version : ${{ matrix.go }}
75-
76- - name : Get Build Tools
77- run : |
78- go get github.com/mattn/goveralls
79- go get golang.org/x/tools/cmd/cover
80- shell : msys2 {0}
81-
82- - name : Add $GOPATH/bin to $PATH
83- run : |
84- echo "::add-path::$(go env GOPATH)/bin"
85- shell : msys2 {0}
86-
87- - uses : actions/checkout@v2
88-
89- - name : Setup goveralls
90- run : goveralls -repotoken 3qJVUE0iQwqnCbmNcDsjYu1nh4J4KIFXx -parallel
91- shell : msys2 {0}
92-
93- - name : Test1
94- run : go test -race -v . -tags ""
95- shell : msys2 {0}
96-
97- - name : Test2
98- run : go test -race -v . -tags "libsqlite3"
99- shell : msys2 {0}
100-
101- - name : Test3
102- run : |
103- echo 'skip this test'
104- echo go test -race -v . -tags "sqlite_allow_uri_authority sqlite_app_armor sqlite_foreign_keys sqlite_fts5 sqlite_icu sqlite_introspect sqlite_json sqlite_preupdate_hook sqlite_secure_delete sqlite_see sqlite_stat4 sqlite_trace sqlite_userauth sqlite_vacuum_incr sqlite_vtable sqlite_unlock_notify"
105- shell : msys2 {0}
106-
107- - name : Test4
108- run : go test -race -v . -tags "sqlite_vacuum_full"
109- shell : msys2 {0}
65+ - uses : msys2/setup-msys2@v2
66+ with :
67+ update : true
68+ install : mingw-w64-x86_64-toolchain mingw-w64-x86_64-sqlite3
69+ msystem : MINGW64
70+ path-type : inherit
71+
72+ - uses : actions/setup-go@v2
73+ with :
74+ go-version : ${{ matrix.go }}
75+
76+ - name : Get Build Tools
77+ run : |
78+ go get github.com/mattn/goveralls
79+ go get golang.org/x/tools/cmd/cover
80+ shell : msys2 {0}
81+
82+ - name : Add $GOPATH/bin to $PATH
83+ run : |
84+ echo "::add-path::$(go env GOPATH)/bin"
85+ shell : msys2 {0}
86+
87+ - uses : actions/checkout@v2
88+
89+ - name : Setup goveralls
90+ run : goveralls -repotoken 3qJVUE0iQwqnCbmNcDsjYu1nh4J4KIFXx -parallel
91+ shell : msys2 {0}
92+
93+ - name : Test1
94+ run : go test -race -v . -tags ""
95+ shell : msys2 {0}
96+
97+ - name : Test2
98+ run : go test -race -v . -tags "libsqlite3"
99+ shell : msys2 {0}
100+
101+ - name : Test3
102+ run : |
103+ echo 'skip this test'
104+ echo go test -race -v . -tags "sqlite_allow_uri_authority sqlite_app_armor sqlite_foreign_keys sqlite_fts5 sqlite_icu sqlite_introspect sqlite_json sqlite_preupdate_hook sqlite_secure_delete sqlite_see sqlite_stat4 sqlite_trace sqlite_userauth sqlite_vacuum_incr sqlite_vtable sqlite_unlock_notify"
105+ shell : msys2 {0}
106+
107+ - name : Test4
108+ run : go test -race -v . -tags "sqlite_vacuum_full"
109+ shell : msys2 {0}
110110
111111 finish :
112112 needs : [test, test-windows]
113113 name : Test Finished
114114 runs-on : ubuntu-latest
115115 steps :
116- - uses : actions/setup-go@v2
117- with :
118- go-version : 1.x
119-
120- - name : Get Build Tools
121- run : |
122- go get github.com/mattn/goveralls
123- go get golang.org/x/tools/cmd/cover
124- - name : Add $GOPATH/bin to $PATH
125- run : |
126- echo "::add-path::$(go env GOPATH)/bin"
127- - name : Send coverage
128- env :
129- COVERALLS_TOKEN : ${{ secrets.GITHUB_TOKEN }}
130- run : goveralls -repotoken 3qJVUE0iQwqnCbmNcDsjYu1nh4J4KIFXx -parallel-finish
116+ - uses : actions/setup-go@v2
117+ with :
118+ go-version : 1.x
119+
120+ - name : Get Build Tools
121+ run : |
122+ go get github.com/mattn/goveralls
123+ go get golang.org/x/tools/cmd/cover
124+ - name : Add $GOPATH/bin to $PATH
125+ run : |
126+ echo "::add-path::$(go env GOPATH)/bin"
127+ - name : Send coverage
128+ env :
129+ COVERALLS_TOKEN : ${{ secrets.ACCESS_TOKEN }}
130+ run : goveralls -repotoken 3qJVUE0iQwqnCbmNcDsjYu1nh4J4KIFXx -parallel-finish
131131# based on: github.com/koron-go/_skeleton/.github/workflows/go.yml
0 commit comments