generated from saltstack-formulas/template-formula
-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (37 loc) · 917 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
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
name: Lint
on: # yamllint disable-line rule:truthy
pull_request: null
push:
branches:
- main
jobs:
commit-lint:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v1
rubocop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
# runs 'bundle install' and caches installed gems automatically:
bundler-cache: true
- name: Run Rubocop
run: bundle exec rubocop --format github
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: pre-commit/[email protected]