This repository was archived by the owner on Oct 29, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
57 lines (50 loc) · 1.64 KB
/
code-review.yml
File metadata and controls
57 lines (50 loc) · 1.64 KB
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
---
name: Code Review - Linting & Link Checks
on:
pull_request:
branches:
- main
workflow_dispatch: {}
jobs:
lint:
name: Lint code base
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run github/super-linter
uses: super-linter/super-linter@v7.3.0
env:
# Lint all code - disabled in as part of #262
VALIDATE_ALL_CODEBASE: false
# Need to define main branch as default is set to master in super-linter
DEFAULT_BRANCH: main
# Enable setting the status of each individual linter run in the Checks section of a pull request
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# The following linter types will be enabled:
VALIDATE_JSON: true
VALIDATE_MARKDOWN: true
VALIDATE_POWERSHELL: true
VALIDATE_YAML: true
POWERSHELL_CONFIG_FILE: PSScriptAnalyzerSettings.psd1
#YAMLLINT_CONFIG_FILE: .github/linters/.yamllint.yml
#VALIDATE_EDITORCONFIG: true
# Disable errors to only generate a report
#DISABLE_ERRORS: true
markdown-link-check:
name: Markdown Link Check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master
with:
fetch-depth: 0
- name: Run linkspector
uses: umbrelladocs/action-linkspector@v1.3.4
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
fail_on_error: true
config_file: ".github/actions-config/.linkspector.yml"