This repository has been archived by the owner on Apr 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 62
64 lines (52 loc) · 1.6 KB
/
check-style.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
60
61
62
63
name: Check-style-workflow
on:
pull_request:
branches:
- master
types: [opened, synchronize, reopened, edited]
push:
branches:
- master
jobs:
Check-style:
runs-on: windows-latest
if: contains(github.event.pull_request.body, 'The workflow check-style was intentionally skipped.') == false
steps:
- uses: actions/checkout@master
- name: Check licenses
working-directory: src
run: powershell .\CheckLicenses.ps1
if: always()
- name: Install .NET core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.100'
if: always()
- name: Cache global nuget packages
uses: actions/cache@v2
env:
cache-name: cache-global-nuget-packages
with:
path: ~/.nuget/packages/
key: ${{ env.cache-name }}-${{ hashFiles('src/InstallToolsForStyle.ps1') }}-${{ hashFiles('src/.config/dotnet-tools.json') }}-2020-07-06
if: always()
- name: Install tools for style
working-directory: src
run: powershell .\InstallToolsForStyle.ps1
if: always()
- name: Check format
working-directory: src
run: powershell .\CheckFormat.ps1
if: always()
- name: Check bite-sized
working-directory: src
run: powershell .\CheckBiteSized.ps1
if: always()
- name: Check dead code
working-directory: src
run: powershell .\CheckDeadCode.ps1
if: always()
- name: Check TODOs
working-directory: src
run: powershell .\CheckTodos.ps1
if: always()