-
Notifications
You must be signed in to change notification settings - Fork 67
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 #396 from countneuroman/AddGithubActions
Add GitHub actions build and run test in master branch
- Loading branch information
Showing
1 changed file
with
77 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,77 @@ | ||
name: Build and run Pulsar4X tests | ||
|
||
on: | ||
push: | ||
branches: [ DevBranch ] | ||
pull_request: | ||
branches: [ DevBranch ] | ||
|
||
jobs: | ||
windows-server-2022: | ||
runs-on: windows-2022 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Setup dotnet | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 7.0.x | ||
|
||
- name: Build | ||
shell: pwsh | ||
run: | | ||
cd Pulsar4X | ||
dotnet restore "Pulsar4X.sln" | ||
dotnet build --no-restore | ||
- name: Run tests | ||
shell: pwsh | ||
run: | | ||
cd Pulsar4X | ||
dotnet test --no-restore | ||
ubuntu-22: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Setup dotnet | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 7.0.x | ||
|
||
- name: Build | ||
shell: bash | ||
run: | | ||
cd Pulsar4X | ||
dotnet restore "Pulsar4X.sln" | ||
dotnet build --no-restore | ||
- name: Run tests | ||
shell: bash | ||
run: | | ||
cd Pulsar4X | ||
dotnet test --no-restore | ||
macOS-12: | ||
runs-on: macos-12 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Setup dotnet | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 7.0.x | ||
|
||
- name: Build | ||
shell: bash | ||
run: | | ||
cd Pulsar4X | ||
dotnet restore "Pulsar4X.sln" | ||
dotnet build --no-restore | ||
- name: Run tests | ||
shell: bash | ||
run: | | ||
cd Pulsar4X | ||
dotnet test --no-restore |