Skip to content

Commit

Permalink
Merge pull request #396 from countneuroman/AddGithubActions
Browse files Browse the repository at this point in the history
Add GitHub actions build and run test in master branch
  • Loading branch information
se5a committed Dec 29, 2023
2 parents ff06cf8 + 767fbcf commit ccc7e19
Showing 1 changed file with 77 additions and 0 deletions.
77 changes: 77 additions & 0 deletions .github/workflows/Build_and_run_tests.yml
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

0 comments on commit ccc7e19

Please sign in to comment.