Add CodeQL support #12
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: Test (DTFx.Core) | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: [ '**.md' ] | |
pull_request: | |
branches: | |
- '**' # run on all pull requests | |
paths-ignore: [ '**.md' ] | |
workflow_dispatch: # allows for the workflow to run manually see: https://docs.github.com/en/actions/using-workflows/manually-running-a-workflow | |
jobs: | |
invoke-build-workflow: # Call re-useable build workflow | |
uses: ./.github/workflows/build.yml | |
test: | |
runs-on: windows-latest | |
needs: invoke-build-workflow # Can only test after build completes | |
steps: | |
- name: Download built-code | |
uses: actions/download-artifact@v2 | |
with: | |
name: build-artifacts | |
path: ./ # This path will match the upload path | |
- 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 | |