-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 979 Bytes
/
Copy pathci.yml
File metadata and controls
35 lines (32 loc) · 979 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: CI
on: [push, pull_request]
jobs:
build_and_test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macOS-latest, ubuntu-latest, windows-latest]
steps:
- name: Setup .NET Core if needed
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.x'
if: matrix.os == 'macOS-latest'
- uses: actions/checkout@v1
- name: Build and test on macOS and Ubuntu
run: |
chmod +x ci.sh
./ci.sh
shell: bash
if: matrix.os == 'macOS-latest' || matrix.os == 'ubuntu-latest'
- name: Build and test on Windows
run: ./ci.ps1
shell: powershell
if: matrix.os == 'windows-latest'
- name: Upload Code Coverage to codecov.io
run: |
curl -s https://codecov.io/bash > codecov
chmod +x codecov
./codecov -f "./CoverageResults/coverage.opencover.xml" -t ${{ secrets.CODECOV_TOKEN }}
shell: bash
if: matrix.os == 'ubuntu-latest'