-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
385f898
commit a662099
Showing
1 changed file
with
16 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,27 +26,27 @@ jobs: | |
# Cosmos DB Emulator is broken on Ubuntu | ||
# https://github.com/Azure/azure-cosmos-db-emulator-docker/issues/56 | ||
build_and_test: | ||
runs-on: ubuntu-latest | ||
runs-on: windows-2022 | ||
permissions: | ||
checks: write | ||
pull-requests: write | ||
# Reenable when Ubuntu is fixed | ||
services: | ||
cosmos: | ||
image: mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator | ||
ports: | ||
- 8081:8081 | ||
- 10250-10255:10250-10255 | ||
env: | ||
AZURE_COSMOS_EMULATOR_PARTITION_COUNT: 3 | ||
AZURE_COSMOS_EMULATOR_ENABLE_DATA_PERSISTENCE: true | ||
# services: | ||
# cosmos: | ||
# image: mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator | ||
# ports: | ||
# - 8081:8081 | ||
# - 10250-10255:10250-10255 | ||
# env: | ||
# AZURE_COSMOS_EMULATOR_PARTITION_COUNT: 3 | ||
# AZURE_COSMOS_EMULATOR_ENABLE_DATA_PERSISTENCE: true | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
# Remove when Ubuntu is fixed | ||
# - name: Start Cosmos DB Emulator | ||
# if: ${{ github.event_name == 'pull_request' || github.ref == 'refs/heads/main' }} | ||
# uses: southpolesteve/cosmos-emulator-github-action@v1 | ||
- name: Start Cosmos DB Emulator | ||
if: ${{ github.event_name == 'pull_request' || github.ref == 'refs/heads/main' }} | ||
uses: southpolesteve/cosmos-emulator-github-action@v1 | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v3 | ||
|
@@ -58,7 +58,7 @@ jobs: | |
run: dotnet restore | ||
|
||
- name: Build | ||
run: dotnet build --no-restore | ||
run: dotnet build --no-restore --configuration:Release | ||
|
||
# Reenable when Ubuntu is fixed | ||
# - name: Wait for Cosmos Emulator | ||
|
@@ -72,10 +72,10 @@ jobs: | |
- name: Test | ||
id: test | ||
if: ${{ github.event_name == 'pull_request' || github.ref == 'refs/heads/main' }} | ||
run: dotnet test --no-build --verbosity normal --logger:trx --results-directory ${{ env.ArtifactDirectory }} | ||
run: dotnet test --no-build --configuration:Release --logger:trx --results-directory ${{ env.ArtifactDirectory }} | ||
|
||
- name: Test Results Comment | ||
if: always() && steps.test.outcome == 'success' || steps.test.outcome == 'failure' | ||
if: always() | ||
uses: im-open/[email protected] | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|