forked from rubocop/rubocop
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1.04 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:
push:
branches:
- master
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
lint-ruby:
name: Ruby
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ruby # Latest stable CRuby version
bundler-cache: true
- name: internal_investigation
run: bundle exec rake internal_investigation
lint-yaml:
permissions:
contents: read # for actions/checkout to fetch code
pull-requests: write # for karancode/yamllint-github-action to post comments on PRs
name: Yaml
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Yamllint
uses: karancode/[email protected]
with:
yamllint_strict: true
yamllint_format: parsable
yamllint_comment: true
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}