-
-
Notifications
You must be signed in to change notification settings - Fork 2
59 lines (48 loc) · 1.68 KB
/
webapp-codecov-clientapp-netcore.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
48
49
50
51
52
53
54
55
56
57
58
59
name: Starsky Codecov ClientApp NetCore
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches: [ master ]
paths:
- 'starsky/**'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 'Checkout repository on branch: ${{ github.REF }}'
uses: actions/checkout@v4
with:
ref: ${{ github.HEAD_REF }}
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.404
- name: Cache node modules clientapp (*nix)
uses: actions/cache@v4
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-clientapp-${{ hashFiles('./starsky/starsky/clientapp/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-clientapp-
- name: Cache nuget packages (*nix)
uses: actions/cache@v4
with:
# nuget cache files are stored in `~/.nuget/packages` on Linux/macOS
path: ~/.nuget/packages
key: ${{ runner.os }}-build-netcore-${{ hashFiles('./starsky/starsky/nuget-packages-list.json') }}
restore-keys: |
${{ runner.os }}-build-netcore-
- name: Build
shell: bash
working-directory: ./starsky
run: bash build.sh --no-publish --no-dependencies --no-sonar
- uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./starsky/starskytest/coverage-merge-cobertura.xml
flags: all # flags must match pattern ^[\w\,]+$
name: codecov # optional