Shamir/.github/workflows/ci.yaml

38 lines
687 B
YAML
Raw Permalink Normal View History

2021-09-25 11:23:57 +00:00
name: Build/Test
on:
- push
- pull_request
jobs:
build:
2021-09-25 13:31:05 +00:00
name: ${{matrix.configuration}} - .NET on ${{ matrix.os }}
2021-09-25 11:23:57 +00:00
strategy:
matrix:
os:
2021-09-25 13:31:05 +00:00
- ubuntu
- macos
- windows
2021-09-25 11:23:57 +00:00
configuration:
2021-09-25 13:31:05 +00:00
- Debug
- Release
2021-09-25 11:26:05 +00:00
sdk:
- 5.0.x
2021-09-25 11:23:57 +00:00
2021-09-25 13:31:05 +00:00
runs-on: ${{ matrix.os }}-latest
2021-09-25 11:23:57 +00:00
steps:
- uses: actions/checkout@v2.3.4
- name: Setup .NET
uses: actions/setup-dotnet@v1.8.2
2021-09-25 11:26:05 +00:00
with:
dotnet-version: ${{ matrix.sdk }}
2021-09-25 11:23:57 +00:00
- name: Build Solution
2021-09-25 12:17:53 +00:00
run: dotnet build -c ${{ matrix.configuration }} shamir.sln
2021-09-25 13:05:07 +00:00
- name: Run Tests
run: dotnet test -c ${{ matrix.configuration }} shamir.sln