Bump Moq from 4.18.4 to 4.20.69 #149
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: Build, test and package | |
on: push | |
env: | |
MSSQL_SA_PASSWORD: "YourStrong!Passw0rd" | |
ACCEPT_EULA: "Y" | |
MSSQL_PID: "developer" | |
jobs: | |
package: | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 6.0.x | |
- name: Get version | |
id: version | |
shell: cmd | |
run: | | |
getversions >> %GITHUB_OUTPUT% | |
- name: Set up database | |
run: | | |
Invoke-WebRequest -Uri https://github.com/HicServices/RDMP/releases/download/v${{ steps.version.outputs.rdmpversion }}/rdmp-${{ steps.version.outputs.rdmpversion }}-cli-win-x64.zip -OutFile rdmp.zip | |
Expand-Archive -Path rdmp.zip -DestinationPath .\rdmpcli | |
cmd.exe /c rdmpcli\rdmp.exe install localhost TEST_ -d | |
- name: Test | |
run: | | |
dotnet test | |
- name: Build | |
run: | | |
cd Plugin/windows | |
dotnet publish --runtime win-x64 -c Release --self-contained false | |
cd ../main | |
dotnet publish -c Release --self-contained false | |
cd ../.. | |
cmd /c nuget pack ./HIC.Plugin.nuspec -Properties Configuration=Release -IncludeReferencedProjects -Symbols -Version ${{ steps.version.outputs.version }} | |
cmd /c rdmpcli\rdmp.exe pack -p --file Rdmp.HIC.Plugin.${{ steps.version.outputs.version }}.nupkg --dir yaml | |
cmd /c rdmpcli\rdmp.exe cmd listsupportedcommands --dir yaml | |
- name: Store created nupkg files | |
uses: actions/upload-artifact@v3 | |
with: | |
path: ./*.nupkg | |
retention-days: 1 | |
- name: Upload release binaries | |
if: contains(github.ref,'refs/tags/') | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
tag: ${{ github.ref }} | |
file: '["HIC.Rdmp.Extensions.Plugin.${{ steps.version.outputs.version }}.nupkg"]' |