Skip to content

Commit 348b624

Browse files
committed
Added support for windows-2025 [skip ci]
1 parent cee7f73 commit 348b624

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ jobs:
99
include:
1010
- os: ubuntu-22.04
1111
sqlserver-version: 2022
12+
- os: windows-2025
13+
sqlserver-version: 2022
14+
- os: windows-2025
15+
sqlserver-version: 2019
1216
- os: windows-2022
1317
sqlserver-version: 2022
1418
- os: windows-2022

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Version | `2022` | `2019`
3737
--- | --- | ---
3838
`ubuntu-24.04` | |
3939
`ubuntu-22.04` | default |
40+
`windows-2025` | default | ✓
4041
`windows-2022` | default | ✓
4142
`windows-2019` | default | ✓
4243

index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,9 @@ if (acceptEula !== 'true') {
4444
throw `The SQL Server End-User License Agreement (EULA) must be accepted before SQL Server can start`;
4545
}
4646

47-
const image = process.env['ImageOS'];
48-
const defaultVersion = ['ubuntu22', 'ubuntu20', 'win22', 'win19'].includes(image) ? '2022' : '2019';
47+
const defaultVersion = '2022';
4948
const sqlserverVersion = parseInt(process.env['INPUT_SQLSERVER-VERSION'] || defaultVersion);
50-
if (![2022, 2019, 2017].includes(sqlserverVersion)) {
49+
if (![2022, 2019].includes(sqlserverVersion)) {
5150
throw `SQL Server version not supported: ${sqlserverVersion}`;
5251
}
5352

0 commit comments

Comments
 (0)