-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 1.32 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
name: CI
# Controls when the action will run. Triggers the workflow on push to master branch or on schedule (on the 1st of every month)
# events
on: [push]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# Set the job key. The key is displayed as the job name
# when a job name is not provided
lint:
if: github.event_name == 'schedule' ||
(github.event_name == 'push' &&
!contains(github.event.head_commit.message, '***NO_CI***') &&
!contains(github.event.head_commit.message, '[ci skip]') &&
!contains(github.event.head_commit.message, '[skip ci]') &&
!contains(github.event.head_commit.message, '[skip_ci]'))
# 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
# Runs the Super-Linter action
- name: Run Super-Linter
uses: super-linter/super-linter@v5
env:
DEFAULT_BRANCH: main
VALIDATE_BASH: true
VALIDATE_DOCKERFILE: true
VALIDATE_DOCKERFILE_HADOLINT: true
VALIDATE_MARKDOWN: true
VALIDATE_YAML: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}