-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (45 loc) · 1.22 KB
/
ci.yml
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
36
37
38
39
40
41
42
43
44
45
46
47
name: CI
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
on:
push:
paths-ignore: ['**.md', 'art/**', 'docs/**', '.vscode/**']
branches:
- master
pull_request:
paths-ignore: ['**.md', 'art/**', 'docs/**', '.vscode/**']
branches:
- master
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup .NET 6
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Build and Test
run: ./Build.ps1
shell: pwsh
- name: Publish coverage report to coveralls.io
if: matrix.os == 'ubuntu-latest'
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: tests/NetIRC.Tests/TestResults/coverage.info
- name: Push to MyGet
if: matrix.os == 'ubuntu-latest'
run: dotnet nuget push artifacts/*.nupkg -s https://www.myget.org/F/netirc/api/v3/index.json -k ${{ secrets.MYGET_TOKEN }}
- name: Artifacts
uses: actions/upload-artifact@v2
with:
name: artifacts
path: artifacts/*