-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add build that runs on mac and ubuntu (#253)
- Loading branch information
Showing
1 changed file
with
10 additions
and
24 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 |
---|---|---|
@@ -1,27 +1,23 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: Pull request | ||
|
||
# Controls when the action will run. | ||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: windows-2022 | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
- os: windows-latest | ||
- os: macos-13 | ||
- os: macos-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v3 | ||
|
||
# Set up MSBuild in PATH for command | ||
- name: Setup MSBuild in PATH | ||
uses: microsoft/setup-msbuild@v1 | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-dotnet@v3 | ||
with: | ||
|
@@ -35,15 +31,5 @@ jobs: | |
env: | ||
PATH: ${{ github.env.PATH }}:/home/runner/.dotnet/tools | ||
|
||
# Get NuGet setup for restoring, packaging and pushing | ||
- name: Setup NuGet | ||
uses: NuGet/[email protected] | ||
|
||
- name: Restore packages with NuGet | ||
run: nuget restore Unleash.sln | ||
|
||
- name: Build the solution | ||
run: msbuild Unleash.sln /p:Configuration=Release | ||
|
||
- name: Run tests | ||
run: dotnet test tests/Unleash.Tests/Unleash.Tests.csproj --no-restore --verbosity normal |