Skip to content

Commit c3eabaa

Browse files
committed
Remove appveyor.yml, add build.yml for GitHub
1 parent e9a55c6 commit c3eabaa

3 files changed

Lines changed: 62 additions & 151 deletions

File tree

.github/workflows/build.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Build and Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- 'pr/**'
8+
paths-ignore:
9+
- '**/*.md'
10+
pull_request:
11+
branches:
12+
- main
13+
paths-ignore:
14+
- '**/*.md'
15+
16+
env:
17+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
18+
DOTNET_CLI_TELEMETRY_OPTOUT: 1
19+
DOTNET_NOLOGO: true
20+
VERSION: '5.13.0'
21+
22+
jobs:
23+
24+
build-linux:
25+
name: Build and Test (Linux)
26+
runs-on: ubuntu-latest
27+
defaults:
28+
run:
29+
working-directory: Src
30+
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v6
34+
35+
- name: Setup .NET
36+
uses: actions/setup-dotnet@v5
37+
with:
38+
dotnet-version: |
39+
10.0.x
40+
41+
- name: Display .NET version
42+
run: dotnet --version
43+
44+
- name: Restore dependencies
45+
run: dotnet restore --verbosity quiet
46+
47+
- name: Add AltCover package
48+
run: dotnet add ./MailMergeLib.Tests/MailMergeLib.Tests.csproj package AltCover
49+
50+
- name: Build solution
51+
run: dotnet build MailMergeLib.sln /verbosity:minimal /t:rebuild /p:configuration=release /nowarn:CS1591,CS0618
52+
53+
- name: Run tests
54+
run: dotnet test --framework net10.0 --no-build --configuration release MailMergeLib.sln /p:AltCover=true /p:AltCoverXmlReport="coverage.xml" /p:AltCoverStrongNameKey="../MailMergeLib/MailMergeLib.snk" /p:AltCoverAssemblyExcludeFilter="MailMergeLib.Tests|NUnit3.TestAdapter" /p:AltCoverLineCover="true"
55+
56+
- name: Upload coverage to Codecov
57+
uses: codecov/codecov-action@v5
58+
with:
59+
files: ./MailMergeLib.Tests/coverage.net10.0.xml
60+
flags: net10.0-linux
61+
name: net10.0-linux
62+
token: ${{ secrets.CODECOV_TOKEN }}

Src/appveyor.yml

Lines changed: 0 additions & 81 deletions
This file was deleted.

appveyor.yml

Lines changed: 0 additions & 70 deletions
This file was deleted.

0 commit comments

Comments
 (0)