Skip to content

Commit

Permalink
disabled race detector for tests on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
sio4 committed Jul 6, 2022
1 parent f6ef7d6 commit d05a7d1
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,17 +195,37 @@ jobs:
shell: bash

- name: Test
if: ${{ matrix.os != 'windows-latest' }}
env:
SODA_DIALECT: "sqlite"
run: |
go test -tags sqlite -race ./...
shell: bash

- name: Test without race detection
if: ${{ matrix.os == 'windows-latest' }}
env:
SODA_DIALECT: "sqlite"
run: |
go test -tags sqlite ./...
shell: bash

- name: Reset soda and run e2e
if: ${{ matrix.os != 'windows-latest' }}
env:
SODA_DIALECT: "sqlite"
run: |
soda drop -e $SODA_DIALECT -p ./testdata/migrations
soda create -e $SODA_DIALECT -p ./testdata/migrations
go test -tags sqlite,e2e -race ./internal/e2e/...
shell: bash

- name: Reset soda and run e2e without race detection
if: ${{ matrix.os == 'windows-latest' }}
env:
SODA_DIALECT: "sqlite"
run: |
soda drop -e $SODA_DIALECT -p ./testdata/migrations
soda create -e $SODA_DIALECT -p ./testdata/migrations
go test -tags sqlite,e2e ./internal/e2e/...
shell: bash

0 comments on commit d05a7d1

Please sign in to comment.