-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (53 loc) · 1.42 KB
/
ci.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Continuous Integration
on:
pull_request:
push:
permissions:
contents: read
jobs:
test:
name: Tests
strategy:
matrix:
force-encryption:
- "true"
- "false"
os:
# ignore ARM64 flavours
- ubuntu-20.04
- ubuntu-22.04
- ubuntu-24.04
- windows-2019
- windows-2022
version:
- 2017
exclude:
- force-encryption: "true"
os: ubuntu-24.04
version: 2017
- force-encryption: "false"
os: ubuntu-24.04
version: 2017
runs-on: ${{ matrix.os }}
steps:
# cloning into "root" does not work when trying to call the action from itself
# inspired by Microsoft: https://github.com/microsoft/action-python/blob/c8ec939994d7ed2ec77b7bbe59ed5f5b72fb5607/.github/workflows/test.yml#L21
- name: Checkout
uses: actions/checkout@v4
with:
path: action
clean: true
- name: Run Action
uses: ./action
with:
components: sqlcmd,sqlengine
force-encryption: ${{ matrix.force-encryption }}
sa-password: "bHuZH81%cGC6"
version: ${{ matrix.version }}
- name: Run tests
run: |
action/test.ps1
shell: pwsh
env:
FORCE_ENCRYPTION: ${{ matrix.force-encryption }}
SA_PASSWORD: "bHuZH81%cGC6"