forked from carpentries-i18n/i18n
-
Notifications
You must be signed in to change notification settings - Fork 14
61 lines (53 loc) · 1.58 KB
/
superlinter.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Super-Linter
# Run this workflow every time a new commit pushed to your repository (includes merged PR)
on: push
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@v2
# Runs the Super-Linter action
- name: Run Super-Linter
uses: github/super-linter@v3
env:
DEFAULT_BRANCH: ja
GITHUB_TOKEN: ${{ secrets.ACTIONS_TOKEN }}
lint-documentation:
name: Lint markdown documentation
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
env:
DEFAULT_BRANCH: ja
GITHUB_TOKEN: ${{ secrets.ACTIONS_TOKEN }}
- name: Lint markdown files
uses: avto-dev/markdown-lint@v1
with:
args: './*.md'
- name: Lint markdown docs
uses: avto-dev/markdown-lint@v1
with:
args: './docs/*md'
lint-scripts:
name: Lint shell scripts
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
env:
DEFAULT_BRANCH: ja
GITHUB_TOKEN: ${{ secrets.ACTIONS_TOKEN }}
- name: Check wrapper script
uses: azohra/shell-linter@latest
with:
path: "./wrapper.sh"
- name: Run shell check
uses: azohra/shell-linter@latest