mirror of https://github.com/mattn/go-sqlite3.git
coveralls to codecov (#845)
* coveralls to codecov * README badge coveralls to codecov
This commit is contained in:
parent
c14096f123
commit
4b46e2b60d
|
@ -0,0 +1,4 @@
|
||||||
|
coverage:
|
||||||
|
status:
|
||||||
|
project: off
|
||||||
|
patch: off
|
|
@ -16,6 +16,9 @@ jobs:
|
||||||
os: [ubuntu-latest, macos-latest]
|
os: [ubuntu-latest, macos-latest]
|
||||||
go: ['1.11.13', '1.12.17', '1.13.15', '1.14.7', '1.15']
|
go: ['1.11.13', '1.12.17', '1.13.15', '1.14.7', '1.15']
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
env:
|
||||||
|
OS: ${{ matrix.os }}
|
||||||
|
GO: ${{ matrix.go }}
|
||||||
steps:
|
steps:
|
||||||
- if: startsWith(matrix.os, 'macos')
|
- if: startsWith(matrix.os, 'macos')
|
||||||
run: brew update
|
run: brew update
|
||||||
|
@ -26,8 +29,7 @@ jobs:
|
||||||
|
|
||||||
- name: Get Build Tools
|
- name: Get Build Tools
|
||||||
run: |
|
run: |
|
||||||
go get github.com/mattn/goveralls
|
go get github.com/ory/go-acc
|
||||||
go get golang.org/x/tools/cmd/cover
|
|
||||||
|
|
||||||
- name: Add $GOPATH/bin to $PATH
|
- name: Add $GOPATH/bin to $PATH
|
||||||
run: |
|
run: |
|
||||||
|
@ -35,20 +37,23 @@ jobs:
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Setup goveralls
|
|
||||||
run: goveralls -repotoken 3qJVUE0iQwqnCbmNcDsjYu1nh4J4KIFXx -parallel
|
|
||||||
|
|
||||||
- name: 'Tags: default'
|
- name: 'Tags: default'
|
||||||
run: go test -race -v . -tags ""
|
run: go-acc . -- -race -v -tags ""
|
||||||
|
|
||||||
- name: 'Tags: libsqlite3'
|
- name: 'Tags: libsqlite3'
|
||||||
run: go test -race -v . -tags "libsqlite3"
|
run: go-acc . -- -race -v -tags "libsqlite3"
|
||||||
|
|
||||||
- name: 'Tags: full'
|
- name: 'Tags: full'
|
||||||
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"
|
run: go-acc . -- -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"
|
||||||
|
|
||||||
- name: 'Tags: vacuum'
|
- name: 'Tags: vacuum'
|
||||||
run: go test -race -v . -tags "sqlite_vacuum_full"
|
run: go-acc . -- -race -v -tags "sqlite_vacuum_full"
|
||||||
|
|
||||||
|
- name: Upload coverage to Codecov
|
||||||
|
uses: codecov/codecov-action@v1
|
||||||
|
with:
|
||||||
|
env_vars: OS,GO
|
||||||
|
file: coverage.txt
|
||||||
|
|
||||||
test-windows:
|
test-windows:
|
||||||
name: Test for Windows
|
name: Test for Windows
|
||||||
|
@ -61,6 +66,9 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
go: ['1.11.13', '1.12.17', '1.13.15', '1.14.7', '1.15']
|
go: ['1.11.13', '1.12.17', '1.13.15', '1.14.7', '1.15']
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
env:
|
||||||
|
OS: windows-latest
|
||||||
|
GO: ${{ matrix.go }}
|
||||||
steps:
|
steps:
|
||||||
- uses: msys2/setup-msys2@v2
|
- uses: msys2/setup-msys2@v2
|
||||||
with:
|
with:
|
||||||
|
@ -75,8 +83,7 @@ jobs:
|
||||||
|
|
||||||
- name: Get Build Tools
|
- name: Get Build Tools
|
||||||
run: |
|
run: |
|
||||||
go get github.com/mattn/goveralls
|
go get -u github.com/ory/go-acc
|
||||||
go get golang.org/x/tools/cmd/cover
|
|
||||||
shell: msys2 {0}
|
shell: msys2 {0}
|
||||||
|
|
||||||
- name: Add $GOPATH/bin to $PATH
|
- name: Add $GOPATH/bin to $PATH
|
||||||
|
@ -86,46 +93,28 @@ jobs:
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Setup goveralls
|
- name: 'Tags: default'
|
||||||
run: goveralls -repotoken 3qJVUE0iQwqnCbmNcDsjYu1nh4J4KIFXx -parallel
|
run: go-acc . -- -race -v -tags ""
|
||||||
shell: msys2 {0}
|
shell: msys2 {0}
|
||||||
|
|
||||||
- name: Test1
|
- name: 'Tags: libsqlite3'
|
||||||
run: go test -race -v . -tags ""
|
run: go-acc . -- -race -v -tags "libsqlite3"
|
||||||
shell: msys2 {0}
|
shell: msys2 {0}
|
||||||
|
|
||||||
- name: Test2
|
- name: 'Tags: full'
|
||||||
run: go test -race -v . -tags "libsqlite3"
|
|
||||||
shell: msys2 {0}
|
|
||||||
|
|
||||||
- name: Test3
|
|
||||||
run: |
|
run: |
|
||||||
echo 'skip this test'
|
echo 'skip this test'
|
||||||
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"
|
echo go-acc . -- -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"
|
||||||
shell: msys2 {0}
|
shell: msys2 {0}
|
||||||
|
|
||||||
- name: Test4
|
- name: 'Tags: vacuum'
|
||||||
run: go test -race -v . -tags "sqlite_vacuum_full"
|
run: go-acc . -- -race -v -tags "sqlite_vacuum_full"
|
||||||
shell: msys2 {0}
|
shell: msys2 {0}
|
||||||
|
|
||||||
finish:
|
- name: Upload coverage to Codecov
|
||||||
needs: [test, test-windows]
|
uses: codecov/codecov-action@v1
|
||||||
name: Test Finished
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/setup-go@v2
|
|
||||||
with:
|
with:
|
||||||
go-version: 1.x
|
env_vars: OS,GO
|
||||||
|
file: coverage.txt
|
||||||
|
|
||||||
- name: Get Build Tools
|
|
||||||
run: |
|
|
||||||
go get github.com/mattn/goveralls
|
|
||||||
go get golang.org/x/tools/cmd/cover
|
|
||||||
- name: Add $GOPATH/bin to $PATH
|
|
||||||
run: |
|
|
||||||
echo "::add-path::$(go env GOPATH)/bin"
|
|
||||||
- name: Send coverage
|
|
||||||
env:
|
|
||||||
COVERALLS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
|
||||||
run: goveralls -repotoken 3qJVUE0iQwqnCbmNcDsjYu1nh4J4KIFXx -parallel-finish
|
|
||||||
# based on: github.com/koron-go/_skeleton/.github/workflows/go.yml
|
# based on: github.com/koron-go/_skeleton/.github/workflows/go.yml
|
||||||
|
|
|
@ -4,7 +4,7 @@ go-sqlite3
|
||||||
[![GoDoc Reference](https://godoc.org/github.com/mattn/go-sqlite3?status.svg)](http://godoc.org/github.com/mattn/go-sqlite3)
|
[![GoDoc Reference](https://godoc.org/github.com/mattn/go-sqlite3?status.svg)](http://godoc.org/github.com/mattn/go-sqlite3)
|
||||||
[![GitHub Actions](https://github.com/mattn/go-sqlite3/workflows/Go/badge.svg)](https://github.com/mattn/go-sqlite3/actions?query=workflow%3AGo)
|
[![GitHub Actions](https://github.com/mattn/go-sqlite3/workflows/Go/badge.svg)](https://github.com/mattn/go-sqlite3/actions?query=workflow%3AGo)
|
||||||
[![Financial Contributors on Open Collective](https://opencollective.com/mattn-go-sqlite3/all/badge.svg?label=financial+contributors)](https://opencollective.com/mattn-go-sqlite3)
|
[![Financial Contributors on Open Collective](https://opencollective.com/mattn-go-sqlite3/all/badge.svg?label=financial+contributors)](https://opencollective.com/mattn-go-sqlite3)
|
||||||
[![Coverage Status](https://coveralls.io/repos/mattn/go-sqlite3/badge.svg?branch=master)](https://coveralls.io/r/mattn/go-sqlite3?branch=master)
|
[![codecov](https://codecov.io/gh/mattn/go-sqlite3/branch/master/graph/badge.svg)](https://codecov.io/gh/mattn/go-sqlite3)
|
||||||
[![Go Report Card](https://goreportcard.com/badge/github.com/mattn/go-sqlite3)](https://goreportcard.com/report/github.com/mattn/go-sqlite3)
|
[![Go Report Card](https://goreportcard.com/badge/github.com/mattn/go-sqlite3)](https://goreportcard.com/report/github.com/mattn/go-sqlite3)
|
||||||
|
|
||||||
Latest stable version is v1.14 or later not v2.
|
Latest stable version is v1.14 or later not v2.
|
||||||
|
|
Loading…
Reference in New Issue