forked from ankane/setup-sqlserver
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (30 loc) · 891 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: build
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-20.04
sqlserver-version: 2022
- os: ubuntu-20.04
sqlserver-version: 2019
- os: windows-2022
sqlserver-version: 2022
- os: windows-2022
sqlserver-version: 2019
- os: windows-2019
sqlserver-version: 2022
- os: windows-2019
sqlserver-version: 2019
steps:
- uses: actions/checkout@v3
- uses: ./.
with:
sqlserver-version: ${{ matrix.sqlserver-version }}
accept-eula: true
- run: sqlcmd -?
- run: sqlcmd -U SA -P 'YourStrong!Passw0rd' -Q 'CREATE DATABASE testdb'
- run: sqlcmd -U SA -P 'YourStrong!Passw0rd' -d testdb -Q 'SELECT @@VERSION'