Bump Microsoft.Azure.Functions.Worker.Sdk from 1.15.1 to 1.16.2 #610
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: Run Unit Tests | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
branches: | |
- "*" | |
jobs: | |
UnitTests: | |
runs-on: macos-latest | |
env: | |
GitHubPersonalAccessToken: ${{ secrets.GitHubPersonalAccessToken }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: | | |
7.0.x | |
6.0.x | |
3.1.x | |
2.1.x | |
- name: Inject GitHub Personal Access Token | |
run: | | |
GitHubConstantsFile=`find . -name GitHubConstants.cs | head -1` | |
echo GitHubConstantsFile = $GitHubConstantsFile | |
sed -i '' "s/PersonalAccessToken = \"\"/PersonalAccessToken = \"$GitHubPersonalAccessToken\"/g" "$GitHubConstantsFile" | |
echo "Finished Injecting GitHub Personal Access Token" | |
- name: Run GitHubApiStatus.UnitTests | |
run: | | |
GitHubApiStatusUnitTestProject=`find . -name GitHubApiStatus.UnitTests.csproj` | |
echo $GitHubApiStatusUnitTestProject | |
GitHubApiStatusUnitTestDirectory=`dirname $GitHubApiStatusUnitTestProject` | |
echo $GitHubApiStatusUnitTestDirectory | |
dotnet test $GitHubApiStatusUnitTestDirectory -c 'Release' | |
- name: Run GitHubApiStatus.Extensions.UnitTests | |
run: | | |
GitHubApiStatusExtensionsUnitTestProject=`find . -name GitHubApiStatus.Extensions.UnitTests.csproj` | |
echo $GitHubApiStatusExtensionsUnitTestProject | |
GitHubApiStatusExtensionsUnitTestDirectory=`dirname $GitHubApiStatusExtensionsUnitTestProject` | |
echo $GitHubApiStatusExtensionsUnitTestDirectory | |
dotnet test $GitHubApiStatusExtensionsUnitTestDirectory -c 'Release' |