Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

Commit 06b7141

Browse files
committed
2 parents fbb18c3 + 3d947a1 commit 06b7141

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

.github/workflows/linter.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Lint Code Base
2+
3+
#############################
4+
# Start the job on all push #
5+
#############################
6+
on:
7+
push:
8+
branches-ignore: [master]
9+
# Remove the line above to run when pushing to master
10+
paths: [ 'src/MudBlazor.CustomLibrary/**' ]
11+
pull_request:
12+
branches: [master]
13+
paths: [ 'src/MudBlazor.CustomLibrary/**' ]
14+
workflow_dispatch:
15+
16+
###############
17+
# Set the Job #
18+
###############
19+
jobs:
20+
build:
21+
# Name the Job
22+
name: Lint Code Base
23+
# Set the agent to run on
24+
runs-on: ubuntu-latest
25+
26+
##################
27+
# Load all steps #
28+
##################
29+
steps:
30+
##########################
31+
# Checkout the code base #
32+
##########################
33+
- name: Checkout Code
34+
uses: actions/checkout@v2
35+
with:
36+
# Full git history is needed to get a proper list of changed files within `super-linter`
37+
fetch-depth: 0
38+
39+
################################
40+
# Run Linter against code base #
41+
################################
42+
- name: Lint Code Base
43+
uses: github/[email protected]
44+
env:
45+
LINTER_RULES_PATH: '.'
46+
EDITORCONFIG_FILE_NAME: '.editorconfig'
47+
VALIDATE_ALL_CODEBASE: false
48+
VALIDATE_CSHARP: true
49+
DEFAULT_BRANCH: master
50+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ Contributions are always welcome!
2727

2828
## Badges
2929

30+
[![Lint Code Base](https://github.com/AngeloDotNet/MudBlazor.CustomLibrary/actions/workflows/linter.yml/badge.svg)](https://github.com/AngeloDotNet/MudBlazor.CustomLibrary/actions/workflows/linter.yml)
3031
[![Publish on NuGet](https://github.com/AngeloDotNet/MudBlazor.CustomLibrary/actions/workflows/publish.yml/badge.svg)](https://github.com/AngeloDotNet/MudBlazor.CustomLibrary/actions/workflows/publish.yml)

0 commit comments

Comments
 (0)