-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (41 loc) · 1.01 KB
/
linting.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
name: Linting
on:
- pull_request
jobs:
yamllint:
name: Yamllint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Yamllint
uses: karancode/yamllint-github-action@master
with:
yamllint_comment: true
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
markdownlint:
name: markdownlint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '16'
- name: Check markdown files using `markdownlint`
run: |
npm install -g markdownlint-cli
markdownlint *.md
rubocop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up latest stable ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ruby
- name: Setup rubocop
run: |
bundle config set with 'development'
bundle install
- name: Run Rubocop
run: rubocop