Skip to content

Commit 1d11dd2

Browse files
vkuttypCopilot
andcommitted
ci: remove seed/install steps, just pass secrets to swift test
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 4004846 commit 1d11dd2

1 file changed

Lines changed: 4 additions & 35 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -95,25 +95,6 @@ jobs:
9595
restore-keys: |
9696
${{ runner.os }}-spm-mssql-
9797
98-
- name: Create test database
99-
run: |
100-
docker run --rm \
101-
mcr.microsoft.com/mssql-tools \
102-
/opt/mssql-tools/bin/sqlcmd \
103-
-S "${{ secrets.DB_HOST }},1433" -U sa \
104-
-P "${{ secrets.MSSQL_TEST_PASS }}" -C \
105-
-Q "IF DB_ID('MSSQLNioTestDb') IS NULL CREATE DATABASE MSSQLNioTestDb"
106-
107-
- name: Seed SQL Server database
108-
run: |
109-
docker run --rm \
110-
-v ${{ github.workspace }}/Tests/Resources:/seed \
111-
mcr.microsoft.com/mssql-tools \
112-
/opt/mssql-tools/bin/sqlcmd \
113-
-S "${{ secrets.DB_HOST }},1433" -U sa \
114-
-P "${{ secrets.MSSQL_TEST_PASS }}" -C \
115-
-i /seed/mssql_seed.sql
116-
11798
- name: Run MSSQL tests
11899
env:
119100
MSSQL_TEST_HOST: ${{ secrets.DB_HOST }}
@@ -138,8 +119,8 @@ jobs:
138119
with:
139120
swift-version: ${{ env.SWIFT_VERSION }}
140121

141-
- name: Install SQLite and psql
142-
run: sudo apt-get install -y libsqlite3-dev postgresql-client
122+
- name: Install SQLite
123+
run: sudo apt-get install -y libsqlite3-dev
143124

144125
- name: Cache SPM
145126
uses: actions/cache@v4
@@ -149,12 +130,6 @@ jobs:
149130
restore-keys: |
150131
${{ runner.os }}-spm-pg-
151132
152-
- name: Seed PostgreSQL database
153-
run: |
154-
PGPASSWORD="${{ secrets.PG_TEST_PASS }}" psql \
155-
-h "${{ secrets.DB_HOST }}" -U pguser -d PostgresNioTestDb \
156-
-f Tests/Resources/postgres_seed.sql
157-
158133
- name: Run PostgreSQL tests
159134
env:
160135
PG_TEST_HOST: ${{ secrets.DB_HOST }}
@@ -179,8 +154,8 @@ jobs:
179154
with:
180155
swift-version: ${{ env.SWIFT_VERSION }}
181156

182-
- name: Install SQLite and mysql client
183-
run: sudo apt-get install -y libsqlite3-dev default-mysql-client
157+
- name: Install SQLite
158+
run: sudo apt-get install -y libsqlite3-dev
184159

185160
- name: Cache SPM
186161
uses: actions/cache@v4
@@ -190,12 +165,6 @@ jobs:
190165
restore-keys: |
191166
${{ runner.os }}-spm-mysql-
192167
193-
- name: Seed MySQL database
194-
run: |
195-
mysql -h "${{ secrets.DB_HOST }}" \
196-
-u mysqluser -p"${{ secrets.MYSQL_TEST_PASS }}" \
197-
MySQLNioTestDb < Tests/Resources/mysql_seed.sql
198-
199168
- name: Run MySQL tests
200169
env:
201170
MYSQL_TEST_HOST: ${{ secrets.DB_HOST }}

0 commit comments

Comments
 (0)