|
1 | | -name: Super-Linter |
| 1 | +--- |
| 2 | +################################# |
| 3 | +################################# |
| 4 | +## Super Linter GitHub Actions ## |
| 5 | +################################# |
| 6 | +################################# |
| 7 | +name: Lint Code Base |
2 | 8 |
|
3 | | -# Run this workflow every time a new commit pushed to your repository |
4 | | -on: push |
| 9 | +# |
| 10 | +# Documentation: |
| 11 | +# https://help.github.com/en/articles/workflow-syntax-for-github-actions |
| 12 | +# |
5 | 13 |
|
| 14 | +############################# |
| 15 | +# Start the job on all push # |
| 16 | +############################# |
| 17 | +on: |
| 18 | + push: |
| 19 | + branches-ignore: [master, main] |
| 20 | + # Remove the line above to run when pushing to master |
| 21 | + pull_request: |
| 22 | + branches: [master, main] |
| 23 | + |
| 24 | +############### |
| 25 | +# Set the Job # |
| 26 | +############### |
6 | 27 | jobs: |
7 | | - # Set the job key. The key is displayed as the job name |
8 | | - # when a job name is not provided |
9 | | - super-lint: |
| 28 | + build: |
10 | 29 | # Name the Job |
11 | | - name: Lint code base |
12 | | - # Set the type of machine to run on |
| 30 | + name: Lint Code Base |
| 31 | + # Set the agent to run on |
13 | 32 | runs-on: ubuntu-latest |
14 | 33 |
|
| 34 | + ################## |
| 35 | + # Load all steps # |
| 36 | + ################## |
15 | 37 | steps: |
16 | | - # Checks out a copy of your repository on the ubuntu-latest machine |
17 | | - - name: Checkout code |
| 38 | + ########################## |
| 39 | + # Checkout the code base # |
| 40 | + ########################## |
| 41 | + - name: Checkout Code |
18 | 42 | uses: actions/checkout@v2 |
| 43 | + with: |
| 44 | + # Full git history is needed to get a proper list of changed files within `super-linter` |
| 45 | + fetch-depth: 0 |
19 | 46 |
|
20 | | - # Runs the Super-Linter action |
21 | | - - name: Run Super-Linter |
22 | | - uses: github/super-linter@v3 |
| 47 | + ################################ |
| 48 | + # Run Linter against code base # |
| 49 | + ################################ |
| 50 | + - name: Lint Code Base |
| 51 | + uses: github/super-linter@v4 |
23 | 52 | env: |
| 53 | + VALIDATE_ALL_CODEBASE: false |
24 | 54 | DEFAULT_BRANCH: main |
25 | 55 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
26 | | - # Uncomment to exclude files from analysis |
27 | | - # Skip .vscode/*.json (JSON files with comments not yet supported - see https://github.com/github/super-linter/issues/921) |
28 | | - FILTER_REGEX_EXCLUDE: .*vscode/.*.json |
29 | | - VALIDATE_TYPESCRIPT_STANDARD: false |
30 | | - VALIDATE_MARKDOWN: false |
31 | | - |
32 | | -# EOF |
|
0 commit comments