install azurite #15
Workflow file for this run
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
name: Validate Build | |
on: | |
push: | |
branches: | |
- main | |
- 'dajusto/add-tests-as-gh-action' | |
paths-ignore: [ '**.md' ] | |
pull_request: | |
branches: | |
- main | |
paths-ignore: [ '**.md' ] | |
env: | |
solution: DurableTask.sln | |
config: Release | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
- name: Restore dependencies | |
run: dotnet restore $solution | |
- name: Build | |
run: dotnet build $solution #--configuration $config #--no-restore -p:FileVersionRevision=$GITHUB_RUN_NUMBER -p:ContinuousIntegrationBuild=true | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16.x' | |
- name: Install Azurite | |
run: npm install -g azurite | |
- name: Start Azurite | |
run: azurite --silent & | |
- name: Test DTx.Core | |
run: dotnet test Azure/durabletask/test/DurableTask.Core.Tests/DurableTask.Core.Tests.csproj #--configuration $config --no-build --verbosity normal | |
- name: Pack | |
run: dotnet pack $solution #--configuration $config --no-build | |
- name: Upload | |
uses: actions/upload-artifact@v3 | |
with: | |
name: pkg | |
path: out/pkg |