-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* WIP * More wip * fix mysql tests * Actions * Rename test * more names * Cleanup; allow running tests with dif DBs via task * Rename webhook action file * Rm test-db prefix * Rm prefix; more db test cov * Fix redis container err messag
- Loading branch information
1 parent
8f3dbdd
commit 6fef58b
Showing
12 changed files
with
636 additions
and
561 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,7 +45,6 @@ jobs: | |
strategy: | ||
matrix: | ||
go: ["1.18", "1.19"] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
|
@@ -55,8 +54,28 @@ jobs: | |
check-latest: true | ||
cache: true | ||
|
||
- name: Unit Test (SQLite) | ||
- name: Unit Test ${{ matrix.go }} | ||
run: go test -race -covermode=atomic -coverprofile=coverage.txt -count=1 ./... | ||
|
||
- name: Upload Coverage | ||
uses: codecov/[email protected] | ||
|
||
database: | ||
name: Database Test | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
database: ["mysql", "postgres"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: "1.18" | ||
check-latest: true | ||
cache: true | ||
|
||
- name: Unit Test ${{ matrix.database }} | ||
env: | ||
FLIPT_TEST_DATABASE_PROTOCOL: ${{ matrix.database }} | ||
run: go test -count=1 ./... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.