-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (53 loc) · 1.55 KB
/
c#_base.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
name: c#/base
on:
workflow_call:
inputs:
runs-on:
required: true
type: string
defaults:
run:
working-directory: c#
jobs:
build:
runs-on: ${{ inputs.runs-on }}
strategy:
matrix:
project: [crawler, imagePipeline, shared, tbClient]
fail-fast: false
env:
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/c#
- run: dotnet build --no-restore -c Release ${{ matrix.project }}
ReSharper:
runs-on: ${{ inputs.runs-on }}
env:
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/c#
- id: cache-restore
uses: actions/cache/restore@v4
with:
path: |
${{ github.workspace }}/.resharper
~/.dotnet/tools
key: ${{ runner.os }}-resharper
restore-keys: ${{ runner.os }}-resharper-
- uses: muno92/resharper_inspectcode@v1
with:
version: 2024.*
minimumReportSeverity: info
minimumSeverity: warning
solutionPath: c#/tbm.sln
cachesHome: ${{ github.workspace }}/.resharper
# https://github.com/actions/runner/issues/1478
- uses: actions/cache/save@v4
if: always() && steps.cache-restore.outputs.cache-hit != 'true'
with:
path: |
${{ github.workspace }}/.resharper
~/.dotnet/tools
key: ${{ steps.cache-restore.outputs.cache-primary-key }}