forked from gitcoinco/code_fund_ads
-
Notifications
You must be signed in to change notification settings - Fork 2
32 lines (30 loc) · 737 Bytes
/
Copy patherb_lint.yml
File metadata and controls
32 lines (30 loc) · 737 Bytes
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
name: ERB Lint
on:
pull_request:
branches:
- '*'
push:
branches:
- master
jobs:
erb_lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby 2.6
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6.6
- name: Cache gems
uses: actions/cache@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Install gems
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Run ERB Lint
run: bundle exec erblint app/views/**/*.html.erb app/components/**/*.html.erb