Skip to content

Commit 187d20b

Browse files
Add MacOS tests
1 parent 6e76a73 commit 187d20b

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

.github/workflows/build-and-test.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ jobs:
1515
strategy:
1616
matrix:
1717
options:
18+
- os: macos-latest
19+
framework: netcoreapp3.1
20+
runtime: -x64
21+
codecov: false
1822
- os: ubuntu-latest
1923
framework: netcoreapp3.1
2024
runtime: -x64
@@ -45,22 +49,25 @@ jobs:
4549
git fetch --prune --unshallow
4650
git submodule -q update --init --recursive
4751
48-
- name: Install Azurite Linux
49-
if: matrix.options.os == 'ubuntu-latest'
52+
- name: Install Azurite
53+
if: matrix.options.os != 'windows-latest'
5054
shell: bash
5155
run: sudo npm install -g azurite
5256

53-
- name: Use Azurite Linux
54-
if: matrix.options.os == 'ubuntu-latest'
57+
- name: Use Azurite
58+
if: matrix.options.os != 'windows-latest'
5559
shell: bash
5660
run: sudo azurite --loose &
5761

58-
- name: Use Azure Storage Emulator Windows
62+
- name: Install Azurite Windows
5963
if: matrix.options.os == 'windows-latest'
6064
shell: cmd
61-
run: |
62-
"%ProgramFiles(x86)%\Microsoft SDKs\Azure\Storage Emulator\AzureStorageEmulator.exe" init /server "(localdb)\MsSqlLocalDb"
63-
"%ProgramFiles(x86)%\Microsoft SDKs\Azure\Storage Emulator\AzureStorageEmulator.exe" start
65+
run: npm install -g azurite
66+
67+
- name: Use Azurite Windows
68+
if: matrix.options.os == 'windows-latest'
69+
shell: cmd
70+
run: start /B azurite --loose
6471

6572
- name: Build
6673
shell: pwsh

0 commit comments

Comments
 (0)