Skip to content

Commit

Permalink
update default shell and brew update
Browse files Browse the repository at this point in the history
  • Loading branch information
raa0121 committed Aug 24, 2020
1 parent 8291c21 commit fa406d3
Showing 1 changed file with 38 additions and 5 deletions.
43 changes: 38 additions & 5 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,33 @@ jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash

strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
go: [ '1.11.13', '1.12.17', '1.13.15', '1.14.7', '1.15' ]
include:
- os: ubuntu-latest
shell: bash
- os: macos-latest
shell: bash
- os: windows-latest
shell: msys2 {0}
fail-fast: false
steps:
- if: startsWith(matrix.os, 'macos')
run: brew update

- if: startsWith(matrix.os, 'windows')
uses: msys2/setup-msys2@v2
with:
update: true
install: mingw-w64-x86_64-toolchain mingw-w64-x86_64-sqlite3
msystem: MINGW64
path-type: inherit

- uses: actions/setup-go@v2
with:
Expand All @@ -30,11 +50,24 @@ jobs:
- uses: actions/checkout@v2

- run: goveralls -repotoken 3qJVUE0iQwqnCbmNcDsjYu1nh4J4KIFXx -parallel
- run: go test -race -v . -tags ""
- run: go test -race -v . -tags "libsqlite3"
- 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_vacuum_full"
- name: Setup goveralls
run: goveralls -repotoken 3qJVUE0iQwqnCbmNcDsjYu1nh4J4KIFXx -parallel

- name: Test1
run: go test -race -v . -tags ""
shell: ${{ matrix.shell }}

- name: Test2
run: go test -race -v . -tags "libsqlite3"
shell: ${{ matrix.shell }}

- name: Test3
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"
shell: ${{ matrix.shell }}

- name: Test3
run: go test -race -v . -tags "sqlite_vacuum_full"
shell: ${{ matrix.shell }}

finish:
needs: test
Expand Down

0 comments on commit fa406d3

Please sign in to comment.