Skip to content

Commit 55eaea2

Browse files
authored
ci: Migrate to GitHub Actions (#369)
1 parent 724cd31 commit 55eaea2

File tree

2 files changed

+41
-17
lines changed

2 files changed

+41
-17
lines changed

.appveyor.yml

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

.github/workflows/ci.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: ci
2+
on:
3+
push:
4+
branches: [release, alpha, beta, next-major, 'release-[0-9]+.x.x', master, main]
5+
pull_request:
6+
branches:
7+
- '**'
8+
paths-ignore:
9+
- '**/**.md'
10+
jobs:
11+
build:
12+
runs-on: windows-latest
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
- name: Set up NuGet
17+
uses: NuGet/setup-nuget@v1.1.1
18+
- name: Restore NuGet packages
19+
run: nuget restore Parse.sln
20+
- name: Install Chocolatey
21+
run: Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
22+
- name: Install OpenCover and Codecov
23+
run: |
24+
choco install opencover.portable -y
25+
choco install codecov -y
26+
- name: Build
27+
run: msbuild Parse.sln /verbosity:minimal
28+
- name: Run tests with coverage
29+
run: |
30+
OpenCover.Console.exe -target:dotnet.exe -targetargs:"test --test-adapter-path:. --logger:console /p:DebugType=full .\Parse.Tests\Parse.Tests.csproj" -filter:"+[Parse*]* -[Parse.Tests*]*" -oldstyle -output:parse_sdk_dotnet_coverage.xml -register:user
31+
- name: Upload coverage to Codecov
32+
run: codecov -f "parse_sdk_dotnet_coverage.xml"
33+
# - name: Upload artifacts
34+
# if: always()
35+
# uses: actions/upload-artifact@v2
36+
# with:
37+
# name: Parse NuGet Package
38+
# path: '**/*.nupkg'
39+
concurrency:
40+
group: ${{ github.workflow }}-${{ github.ref }}
41+
cancel-in-progress: true

0 commit comments

Comments
 (0)