-
Notifications
You must be signed in to change notification settings - Fork 9
32 lines (30 loc) · 931 Bytes
/
01_lint_me.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
---
name: Super-Linter
# Run this workflow every time a new commit pushed to your repository
on:
push:
pull_request:
branches: [master, main, develop]
jobs:
# Set the job key. The key is displayed as the job name
# when a job name is not provided
super-lint:
# Name the Job
name: Lint code base
# Set the type of machine to run on
runs-on: ubuntu-latest
steps:
# Checks out a copy of your repository on the ubuntu-latest machine
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
# Runs the Super-Linter action
- name: Run Super-Linter
uses: github/super-linter/@main
env:
LINTER_RULES_PATH: /
DEFAULT_BRANCH: ${{ github.ref_name }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_ALL_CODEBASE: ${{ github.event_name != 'pull_request' }}
VALIDATE_YAML: true