forked from CropperBlazor/Cropper.Blazor
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (40 loc) · 1.38 KB
/
ci.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
name: Build, run tests, code linting
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
on:
pull_request:
branches-ignore:
- master
jobs:
code-quality-check:
name: Check code quality
uses: CropperBlazor/Cropper.Blazor/.github/workflows/build-test-template.yml@dev
secrets: inherit
code-linting:
name: Code linting
if: ${{ github.actor != 'dependabot[bot]' }}
runs-on: ubuntu-latest
needs: code-quality-check
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
# super-linter needs the full git history to get the
# list of files that changed across commits
fetch-depth: 0
- name: Super-Linter
uses: super-linter/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OUTPUT_FOLDER: Reports
OUTPUT_DETAILS: detailed
VALIDATE_ALL_CODEBASE: true
VALIDATE_MARKDOWN: false
VALIDATE_JAVASCRIPT_PRETTIER: false
LOG_LEVEL: WARN
FILTER_REGEX_EXCLUDE: '(\W|^)(.*([.]min[.]css))($)|(\W|^)(.*([.]min[.]js))($)'
FILTER_REGEX_INCLUDE: /github/workspace/src/Cropper.Blazor/.*
JSCPD_CONFIG_FILE: '.jscpd.json'
HTML_FILE_NAME: '.htmlhintrc'
CSS_FILE_NAME: '.stylelintrc.json'