-
-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finish filling out database CI matricies
- Loading branch information
Showing
1 changed file
with
57 additions
and
2 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -312,7 +312,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
database-type: [ 'SqlServer' ] | ||
database-type: [ 'SqlServer', 'Sqlite', 'PostgresSql', 'MariaDB', 'MySql' ] | ||
watchdog-type: [ 'Basic', 'System' ] | ||
configuration: [ 'Debug', 'Release' ] | ||
runs-on: windows-2019 | ||
|
@@ -333,6 +333,46 @@ jobs: | |
if: ${{ matrix.watchdog-type == 'Basic' }} | ||
run: echo "General__UseBasicWatchdog=true" >> $Env:GITHUB_ENV | ||
|
||
- name: Set Sqlite Connection Info | ||
if: ${{ matrix.database-type == 'Sqlite' }} | ||
shell: bash | ||
run: | | ||
echo "TGS_TEST_DATABASE_TYPE=Sqlite" >> $GITHUB_ENV | ||
echo "TGS_TEST_CONNECTION_STRING=Data Source=TGS_${{ matrix.watchdog-type }}_${{ matrix.configuration }}.sqlite3;Mode=ReadWriteCreate" >> $GITHUB_ENV | ||
- name: Setup Postgres | ||
uses: ankane/setup-postgres@v1 | ||
if: ${{ matrix.database-type == 'PostgresSql' }} | ||
|
||
- name: Set PostgresSql Connection Info | ||
if: ${{ matrix.database-type == 'PostgresSql' }} | ||
shell: bash | ||
run: | | ||
echo "TGS_TEST_DATABASE_TYPE=PostgresSql" >> $GITHUB_ENV | ||
echo "TGS_TEST_CONNECTION_STRING=Application Name=tgstation-server;Host=127.0.0.1;Username=$USER;Database=TGS__${{ matrix.watchdog-type }}_${{ matrix.configuration }}" >> $GITHUB_ENV | ||
- name: Setup MariaDB | ||
uses: ankane/setup-mariadb@v1 | ||
if: ${{ matrix.database-type == 'MariaDB' }} | ||
|
||
- name: Set MariaDB Connection Info | ||
if: ${{ matrix.database-type == 'MariaDB' }} | ||
shell: bash | ||
run: | | ||
echo "TGS_TEST_DATABASE_TYPE=MariaDB" >> $GITHUB_ENV | ||
echo "TGS_TEST_CONNECTION_STRING=Server=127.0.0.1;uid=root;database=tgs__${{ matrix.watchdog-type }}_${{ matrix.configuration }}" >> $GITHUB_ENV | ||
- name: Setup MySQL | ||
uses: ankane/setup-mysql@v1 | ||
if: ${{ matrix.database-type == 'MySql' }} | ||
|
||
- name: Set MySQL Connection Info | ||
if: ${{ matrix.database-type == 'MySql' }} | ||
shell: bash | ||
run: | | ||
echo "TGS_TEST_DATABASE_TYPE=MySql" >> $GITHUB_ENV | ||
echo "TGS_TEST_CONNECTION_STRING=Server=127.0.0.1;uid=root;database=tgs__${{ matrix.watchdog-type }}_${{ matrix.configuration }}" >> $GITHUB_ENV | ||
- name: Set SqlServer Connection Info | ||
if: ${{ matrix.database-type == 'SqlServer' }} | ||
shell: bash | ||
|
@@ -430,7 +470,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
database-type: [ 'Sqlite', 'PostgresSql', 'MariaDB', 'MySql' ] | ||
database-type: [ 'SqlServer', 'Sqlite', 'PostgresSql', 'MariaDB', 'MySql' ] | ||
watchdog-type: [ 'Basic', 'System' ] | ||
configuration: [ 'Debug', 'Release' ] | ||
runs-on: ubuntu-latest | ||
|
@@ -482,6 +522,21 @@ jobs: | |
echo "TGS_TEST_CONNECTION_STRING=Server=127.0.0.1;Port=3307;uid=root;pwd=mysql;database=tgs__${{ matrix.watchdog-type }}_${{ matrix.configuration }}" >> $GITHUB_ENV | ||
echo "Database__ServerVersion=5.7.31" >> $GITHUB_ENV | ||
- name: Setup SqlServer | ||
uses: potatoqualitee/[email protected] | ||
if: ${{ matrix.database-type == 'SqlServer' }} | ||
with: | ||
install: sqlengine | ||
sa-password: MyTestPassword | ||
|
||
- name: Set SqlServer Connection Info | ||
if: ${{ matrix.database-type == 'SqlServer' }} | ||
shell: bash | ||
run: | | ||
TGS_CONNSTRING_VALUE="Server=localhost,1433;Initial Catalog=TGS_${{ matrix.watchdog-type }}_${{ matrix.configuration }};User Id=sa;Password=MyTestPassword;Application Name=tgstation-server" | ||
echo "TGS_TEST_CONNECTION_STRING=$(echo $TGS_CONNSTRING_VALUE)" >> $GITHUB_ENV | ||
echo "TGS_TEST_DATABASE_TYPE=SqlServer" >> $GITHUB_ENV | ||
- name: Set General__UseBasicWatchdog | ||
if: ${{ matrix.watchdog-type == 'Basic' }} | ||
run: echo "General__UseBasicWatchdog=true" >> $GITHUB_ENV | ||
|