-
Notifications
You must be signed in to change notification settings - Fork 8
42 lines (40 loc) · 986 Bytes
/
lint.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
# rubocop action doesn't work yet:
# https://github.com/gimenete/rubocop-action/issues/12
name: Lint
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
rubocop:
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
- name: install deps
run: bundle install
- name: Run rubocop
run: bundle exec rubocop --display-cop-names
# rubocop:
# runs-on: ubuntu-latest
# steps:
# - name: checkout
# uses: actions/checkout@v2
# - name: Rubocop checks
# uses: gimenete/rubocop-action@1.0
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
markdownlint:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: MarkdownLint mdl Action
uses: actionshub/markdownlint@1.2.0