generated from maxisam/github-ts-action-template
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (44 loc) · 1.27 KB
/
test-dotnet-format.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
name: "🧪 Test dotnet format"
on:
workflow_dispatch:
pull_request:
paths:
- "__tests__/dotnet/**"
branches:
- main
jobs:
dotnet-format:
name: "🧪 Test dotnet format"
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: dotnet-format
id: dotnet-format
uses: ./
with:
authToken: ${{ secrets.GITHUB_TOKEN }}
workspace: ${{ github.workspace }}/__tests__/dotnet/Console
logLevel: "detailed"
projectFileName: "Console.sln"
jscpdCheck: true
jscpdCheckAsError: true
- name: log-output
run: echo "${{ steps.dotnet-format.outputs.output }}"
dotnet-format-config:
name: "🧪 Test dotnet-format with config"
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: dotnet-format
id: dotnet-format
uses: ./
with:
authToken: ${{ secrets.GITHUB_TOKEN }}
workspace: ${{ github.workspace }}/__tests__/dotnet/ConfigConsoleApp
projectFileName: "ConfigConsoleApp.sln"
jscpdCheck: true
jscpdCheckAsError: true
- name: log-output
run: echo "${{ steps.dotnet-format.outputs.output }}"