-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (46 loc) · 1.44 KB
/
Copy pathci.yml
File metadata and controls
58 lines (46 loc) · 1.44 KB
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
48
49
50
51
52
53
54
55
56
57
58
name: CI
permissions:
contents: read
on:
push:
branches:
- develop
pull_request:
workflow_dispatch:
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
fail-fast: false
steps:
- uses: actions/checkout@v7
- name: Display OS Information
run: |
echo "Running on: ${{ matrix.os }}"
echo "Runner OS: ${{ runner.os }}"
- name: Setup .NET
uses: actions/setup-dotnet@v6
with:
global-json-file: global.json
cache: true
cache-dependency-path: Directory.Packages.props
- name: Restore dependencies
run: dotnet restore ProjGraph.slnx
- name: Build
run: dotnet build ProjGraph.slnx --no-restore --configuration Release
- name: Check formatting
run: dotnet format ProjGraph.slnx --no-restore --verify-no-changes
- name: Test
run: dotnet test ProjGraph.slnx --no-build --configuration Release --verbosity normal --collect:"XPlat Code Coverage" --results-directory ./coverage
- name: Upload coverage reports
if: matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v7
with:
name: coverage-reports
path: ./coverage/**/coverage.cobertura.xml
retention-days: 14