-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (36 loc) · 1.07 KB
/
reusable_lint.yaml
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
name: 'Reusable: Code Style Review'
on:
workflow_call:
permissions:
contents: read
pull-requests: write
jobs:
lint:
runs-on: 'ubuntu-latest'
# services:
# postgres:
# image: 'postgis/postgis:14-3.3-alpine'
# env:
# POSTGRESQL_PASSWORD: 'postgres'
# ports: ['5432:5432']
# options: >-
# --health-cmd pg_isready
# --health-interval 10s
# --health-timeout 10s
# --health-retries 10
# memcached:
# image: 'memcached:alpine'
# ports: ['11211:11211']
env:
BUNDLE_PATH: 'vendor/bundle'
REVIEWDOG_GITHUB_API_TOKEN: ${{ github.token }}
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
- run: bundle install --jobs 4 --retry 3
- uses: reviewdog/[email protected]
with:
reporter: github-pr-review
level: error
reviewdog_flags: '-diff="git diff $DIFF_BRANCH"'
rubocop_extensions: rubocop-rails rubocop-performance rubocop-rspec rubocop-i18n rubocop-rake rubocop-faker