forked from mirror/go-sqlite3
Fix go.yaml
This commit is contained in:
parent
fd606f826a
commit
c14096f123
|
@ -13,42 +13,42 @@ jobs:
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
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
|
||||||
steps:
|
steps:
|
||||||
- if: startsWith(matrix.os, 'macos')
|
- if: startsWith(matrix.os, 'macos')
|
||||||
run: brew update
|
run: brew update
|
||||||
|
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: ${{ matrix.go }}
|
go-version: ${{ matrix.go }}
|
||||||
|
|
||||||
- name: Get Build Tools
|
- name: Get Build Tools
|
||||||
run: |
|
run: |
|
||||||
go get github.com/mattn/goveralls
|
go get github.com/mattn/goveralls
|
||||||
go get golang.org/x/tools/cmd/cover
|
go get golang.org/x/tools/cmd/cover
|
||||||
|
|
||||||
- name: Add $GOPATH/bin to $PATH
|
- name: Add $GOPATH/bin to $PATH
|
||||||
run: |
|
run: |
|
||||||
echo "::add-path::$(go env GOPATH)/bin"
|
echo "::add-path::$(go env GOPATH)/bin"
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Setup goveralls
|
- name: Setup goveralls
|
||||||
run: goveralls -repotoken 3qJVUE0iQwqnCbmNcDsjYu1nh4J4KIFXx -parallel
|
run: goveralls -repotoken 3qJVUE0iQwqnCbmNcDsjYu1nh4J4KIFXx -parallel
|
||||||
|
|
||||||
- name: Test1
|
- name: 'Tags: default'
|
||||||
run: go test -race -v . -tags ""
|
run: go test -race -v . -tags ""
|
||||||
|
|
||||||
- name: Test2
|
- name: 'Tags: libsqlite3'
|
||||||
run: go test -race -v . -tags "libsqlite3"
|
run: go test -race -v . -tags "libsqlite3"
|
||||||
|
|
||||||
- name: Test3
|
- 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 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"
|
||||||
|
|
||||||
- name: Test4
|
- name: 'Tags: vacuum'
|
||||||
run: go test -race -v . -tags "sqlite_vacuum_full"
|
run: go test -race -v . -tags "sqlite_vacuum_full"
|
||||||
|
|
||||||
test-windows:
|
test-windows:
|
||||||
name: Test for Windows
|
name: Test for Windows
|
||||||
|
@ -59,73 +59,73 @@ jobs:
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
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
|
||||||
steps:
|
steps:
|
||||||
- uses: msys2/setup-msys2@v2
|
- uses: msys2/setup-msys2@v2
|
||||||
with:
|
with:
|
||||||
update: true
|
update: true
|
||||||
install: mingw-w64-x86_64-toolchain mingw-w64-x86_64-sqlite3
|
install: mingw-w64-x86_64-toolchain mingw-w64-x86_64-sqlite3
|
||||||
msystem: MINGW64
|
msystem: MINGW64
|
||||||
path-type: inherit
|
path-type: inherit
|
||||||
|
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: ${{ matrix.go }}
|
go-version: ${{ matrix.go }}
|
||||||
|
|
||||||
- name: Get Build Tools
|
- name: Get Build Tools
|
||||||
run: |
|
run: |
|
||||||
go get github.com/mattn/goveralls
|
go get github.com/mattn/goveralls
|
||||||
go get golang.org/x/tools/cmd/cover
|
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
|
||||||
run: |
|
run: |
|
||||||
echo "::add-path::$(go env GOPATH)/bin"
|
echo "::add-path::$(go env GOPATH)/bin"
|
||||||
shell: msys2 {0}
|
shell: msys2 {0}
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Setup goveralls
|
- name: Setup goveralls
|
||||||
run: goveralls -repotoken 3qJVUE0iQwqnCbmNcDsjYu1nh4J4KIFXx -parallel
|
run: goveralls -repotoken 3qJVUE0iQwqnCbmNcDsjYu1nh4J4KIFXx -parallel
|
||||||
shell: msys2 {0}
|
shell: msys2 {0}
|
||||||
|
|
||||||
- name: Test1
|
- name: Test1
|
||||||
run: go test -race -v . -tags ""
|
run: go test -race -v . -tags ""
|
||||||
shell: msys2 {0}
|
shell: msys2 {0}
|
||||||
|
|
||||||
- name: Test2
|
- name: Test2
|
||||||
run: go test -race -v . -tags "libsqlite3"
|
run: go test -race -v . -tags "libsqlite3"
|
||||||
shell: msys2 {0}
|
shell: msys2 {0}
|
||||||
|
|
||||||
- name: Test3
|
- 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 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"
|
||||||
shell: msys2 {0}
|
shell: msys2 {0}
|
||||||
|
|
||||||
- name: Test4
|
- name: Test4
|
||||||
run: go test -race -v . -tags "sqlite_vacuum_full"
|
run: go test -race -v . -tags "sqlite_vacuum_full"
|
||||||
shell: msys2 {0}
|
shell: msys2 {0}
|
||||||
|
|
||||||
finish:
|
finish:
|
||||||
needs: [test, test-windows]
|
needs: [test, test-windows]
|
||||||
name: Test Finished
|
name: Test Finished
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: 1.x
|
go-version: 1.x
|
||||||
|
|
||||||
- name: Get Build Tools
|
- name: Get Build Tools
|
||||||
run: |
|
run: |
|
||||||
go get github.com/mattn/goveralls
|
go get github.com/mattn/goveralls
|
||||||
go get golang.org/x/tools/cmd/cover
|
go get golang.org/x/tools/cmd/cover
|
||||||
- name: Add $GOPATH/bin to $PATH
|
- name: Add $GOPATH/bin to $PATH
|
||||||
run: |
|
run: |
|
||||||
echo "::add-path::$(go env GOPATH)/bin"
|
echo "::add-path::$(go env GOPATH)/bin"
|
||||||
- name: Send coverage
|
- name: Send coverage
|
||||||
env:
|
env:
|
||||||
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
COVERALLS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||||
run: goveralls -repotoken 3qJVUE0iQwqnCbmNcDsjYu1nh4J4KIFXx -parallel-finish
|
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
|
||||||
|
|
Loading…
Reference in New Issue