forked from AAEmu/AAEmu
-
Notifications
You must be signed in to change notification settings - Fork 8
34 lines (32 loc) · 1.13 KB
/
dotnetcore.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
name: Build & Unit Test
on:
push:
branches: [master, develop]
pull_request:
# The branches below must be a subset of the branches above
branches:
- "*" # matches every branch
- "*/*" # matches every branch containing a single '/'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: "8.0.x"
dotnet-quality: "preview"
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Scripts Compile
run: dotnet run --project AAEmu.Game/AAEmu.Game.csproj compiler-check
- name: Test
run: dotnet test --filter FullyQualifiedName!~AAEmu.IntegrationTests /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=lcov
- name: Coveralls GitHub Action
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./AAEmu.UnitTests/TestResults/coverage.info