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

Commit 281edb2

Browse files
authored
Create linter.yml
1 parent 5c6bca0 commit 281edb2

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-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 }}

0 commit comments

Comments
 (0)