-
Notifications
You must be signed in to change notification settings - Fork 296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run DTFx.Core tests in GitHub action #1117
Merged
Merged
Changes from 16 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
33bf34b
simple test
davidmrdavid ef1bb90
remove global json config
davidmrdavid 6df0f50
quick test
davidmrdavid 991eb9b
quick test
davidmrdavid 89b0361
add azurite
davidmrdavid 81eb770
add services
davidmrdavid 481dacd
add azurite step
davidmrdavid 0f285d7
install azurite
davidmrdavid e4f827c
fix path
davidmrdavid 813d421
add .netcore 3.1 and 2.1
davidmrdavid 5c02833
test dtfx.as
davidmrdavid 1d8d591
replace path
davidmrdavid 8a78727
add queue port
davidmrdavid 4d5bcb9
add ports
davidmrdavid 1b25de5
add ports
davidmrdavid 85fef62
comment out Azure Storage tests
davidmrdavid 10f2a2e
remove test branch
davidmrdavid File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Validate Build (DTFx.Core) | ||
|
||
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: Set up .NET Core 2.1 | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: '2.1.x' | ||
|
||
- name: Set up .NET Core 3.1 | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: '3.1.x' | ||
|
||
- 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: Test DTFx.Core | ||
run: azurite --silent --blobPort 10000 --queuePort 10001 --tablePort 10002 & dotnet test ./test/DurableTask.Core.Tests/DurableTask.Core.Tests.csproj #--configuration $config --no-build --verbosity normal | ||
|
||
# Azure Storage is commented out until DTFx.AS v2 is enabled, where Azurite can be used to run unit tests | ||
# - name: Test DTFx.AzureStorage | ||
# run: azurite --silent --blobPort 10000 --queuePort 10001 --tablePort 10002 & dotnet test ./test/DurableTask.AzureStorage.Tests/DurableTask.AzureStorage.Tests.csproj #--configuration $config --no-build --verbosity normal | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we remove this line before merging?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed - will do so now!