-
Notifications
You must be signed in to change notification settings - Fork 5
62 lines (53 loc) · 1.48 KB
/
rubocop.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Rubocop
on: [push]
jobs:
ruby:
name: "Ruby"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install PostgreSQL client
run: sudo apt-get install libpq-dev
- name: Cache Gems
uses: actions/cache@v4
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-no-dev-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
- name: Set up Ruby
uses: ruby/setup-ruby@v1
- name: install dependencies
run: |
gem install bundler --no-doc
bundle config path vendor/bundle
bundle check || bundle install --without development --jobs 4 --retry 3
- name: Run code style checks
run: bundle exec rubocop
front_end:
name: "Javascript"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Nodejs
uses: actions/setup-node@v4
with:
node-version: 18.15.x
- uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.OS }}-build-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.OS }}-build-${{ env.cache-name }}-
${{ runner.OS }}-build-
${{ runner.OS }}-
- name: Install npm dependencies
run: |
npm install yarn
yarn install
- name: Check javascript for code style
run: |
yarn lint:js
- name: Run SCSS linter
run: |
yarn lint:css