-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from mills88812/Altoids-workflow-thing
Adds a workflow; Github will now compile our code for us and tell us if it breaks
- Loading branch information
Showing
1 changed file
with
30 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,30 @@ | ||
# This builds the mod on Github's Windows machines, | ||
# to ensure that any code pushed to main, at the very least, will compile | ||
# (and maybe pass some basic tests, if we add any) | ||
|
||
name: DLL Build and Test | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
build: | ||
# Running on Windows is slower, | ||
# but it reflects that fact that this mod can only feasibly run in a Windows environment. | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 8.0.x # this is a .NET 8 project | ||
- name: Restore dependencies | ||
run: dotnet restore src/Deadlands.sln /p:Configuration=Debug /p:Platform="Any CPU" | ||
- name: Build | ||
run: dotnet build src/Deadlands.sln --no-restore /p:Configuration=Debug /p:Platform="Any CPU" | ||
- name: Test | ||
run: dotnet test src/Deadlands.sln --no-build /p:Configuration=Debug /p:Platform="Any CPU" |