-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (36 loc) · 1.16 KB
/
linter.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
---
name: linter
on:
pull_request:
branches: [develop]
jobs:
lint:
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
# Full git history is needed to get a proper
# list of changed files within `super-linter`
fetch-depth: 0
- name: Mega Linter
uses: oxsecurity/megalinter/flavors/[email protected]
env:
VALIDATE_ALL_CODEBASE: false
FILTER_REGEX_EXCLUDE: LICENSE.md
ENABLE_LINTERS: CSHARP_DOTNET_FORMAT, MARKDOWN_MARKDOWNLINT
DEFAULT_BRANCH: develop
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Upload MegaLinter artifacts
- name: Archive production artifacts
uses: actions/upload-artifact@v4
if: ${{ success() }} || ${{ failure() }}
with:
name: MegaLinter reports
path: |
megalinter-reports
mega-linter.log