This repository has been archived by the owner on Jul 5, 2024. It is now read-only.
Add integration test project #376
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 Squirrel | |
on: [ push, pull_request ] | |
env: | |
DOTNET_VERSION: '6.0.301' | |
jobs: | |
build-windows: | |
name: Build Windows | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: ${{ env.DOTNET_VERSION }} | |
- name: Build | |
shell: pwsh | |
run: .\build.ps1 | |
- name: Test Core | |
run: dotnet test --no-build test\Squirrel.Tests\Squirrel.Tests.csproj -c Release -l "console;verbosity=detailed" | |
- name: Test CLI | |
run: dotnet test --no-build test\Squirrel.CommandLine.Tests\Squirrel.CommandLine.Tests.csproj -c Release -l "console;verbosity=detailed" | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: packages | |
path: .\build\Release\*.nupkg | |
- name: Publish to GitHub Packages | |
shell: pwsh | |
run: dotnet nuget push .\build\Release\*.nupkg -k ${{ secrets.GITHUB_TOKEN }} -s https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --skip-duplicate |