Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 40 additions & 40 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
name: .NET
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Azurite emulates Azure Storage so the integration tests run without a
# live storage account. It is started with docker run rather than as a
# service container because it needs --skipApiVersionCheck: the Azure SDK
# sends an API version newer than Azurite knows about and Azurite rejects
# it with a 400 otherwise. Only the queue port (10001) is mapped.
- name: Start Azurite
run: |
docker run -d --name azurite -p 10001:10001 \
mcr.microsoft.com/azure-storage/azurite \
azurite --queueHost 0.0.0.0 --blobHost 0.0.0.0 --tableHost 0.0.0.0 --skipApiVersionCheck --silent
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
env:
# UseDevelopmentStorage=true targets the Azurite emulator above.
Storage__ConnectionString: "UseDevelopmentStorage=true"
Storage__QueueName: "integration-test-queue"
run: dotnet test --no-build --verbosity normal -p:ParallelizeTestCollections=false
name: .NET

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
# Azurite emulates Azure Storage so the integration tests run without a
# live storage account. It is started with docker run rather than as a
# service container because it needs --skipApiVersionCheck: the Azure SDK
# sends an API version newer than Azurite knows about and Azurite rejects
# it with a 400 otherwise. Only the queue port (10001) is mapped.
- name: Start Azurite
run: |
docker run -d --name azurite -p 10001:10001 \
mcr.microsoft.com/azure-storage/azurite \
azurite --queueHost 0.0.0.0 --blobHost 0.0.0.0 --tableHost 0.0.0.0 --skipApiVersionCheck --silent
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
10.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
env:
# UseDevelopmentStorage=true targets the Azurite emulator above.
Storage__ConnectionString: "UseDevelopmentStorage=true"
Storage__QueueName: "integration-test-queue"
run: dotnet test --no-build --verbosity normal -p:ParallelizeTestCollections=false
78 changes: 39 additions & 39 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
name: Nuget
on:
push:
tags:
- 'v*'
env:
PACKAGE_OUTPUT: ${{ github.workspace }}/package
NUGET_URL: https://api.nuget.org/v3/index.json
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration Release
- name: Get Version
id: version
uses: battila7/get-version-action@v2
- name: Package Project
run: dotnet pack --no-restore --no-build --configuration Release --include-symbols -p:PackageVersion=${{ steps.version.outputs.version-without-v }} --output ${{ env.PACKAGE_OUTPUT }}
- name: Publish Package
run: dotnet nuget push ${{ env.PACKAGE_OUTPUT }}/*.nupkg -k ${{ secrets.NUGET_KEY }} -s ${{ env.NUGET_URL }} --skip-duplicate
name: Nuget

on:
push:
tags:
- 'v*'

env:
PACKAGE_OUTPUT: ${{ github.workspace }}/package
NUGET_URL: https://api.nuget.org/v3/index.json

jobs:
deploy:
name: Deploy

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
10.0.x
- name: Restore dependencies
run: dotnet restore

- name: Build
run: dotnet build --no-restore --configuration Release

- name: Get Version
id: version
uses: battila7/get-version-action@v2

- name: Package Project
run: dotnet pack --no-restore --no-build --configuration Release --include-symbols -p:PackageVersion=${{ steps.version.outputs.version-without-v }} --output ${{ env.PACKAGE_OUTPUT }}

- name: Publish Package
run: dotnet nuget push ${{ env.PACKAGE_OUTPUT }}/*.nupkg -k ${{ secrets.NUGET_KEY }} -s ${{ env.NUGET_URL }} --skip-duplicate
Loading
Loading