-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(CI): add pull request workflow
- Loading branch information
1 parent
320ced3
commit 0c3e6f1
Showing
1 changed file
with
47 additions
and
0 deletions.
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,47 @@ | ||
name: Item Tracker CI | ||
|
||
on: | ||
pull_request: | ||
branches: [ master ] | ||
|
||
env: | ||
Project_Name: MHWItemBoxTracker | ||
configuration: Debug | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
build: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install .NET Core | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 5.0.x | ||
|
||
- name: Setup MSBuild.exe | ||
uses: microsoft/setup-msbuild@v1.0.2 | ||
|
||
# Restore the application to populate the obj folder with RuntimeIdentifiers | ||
- name: Restore the applications | ||
env: | ||
NUGET_USERNAME: ${{ github.repository_owner }} | ||
NUGET_PASSWORD: ${{ secrets.GITHUB_TOKEN }} | ||
shell: pwsh | ||
run: | | ||
cp .github/NuGet.Config . | ||
msbuild -m /t:Restore | ||
- name: Execute unit tests | ||
run: dotnet test | ||
|
||
# if I had tests, I probably wouldn't need to build... | ||
- name: Build the apps | ||
shell: pwsh | ||
run: | | ||
msbuild -m /p:"Configuration=$env:configuration,AssemblyVersionNumber=0.0.0.0" |