forked from paginagmbh/redmine_lightbox2
-
Notifications
You must be signed in to change notification settings - Fork 7
50 lines (38 loc) · 946 Bytes
/
linters.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
name: Run Linters
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install package dependencies
run: |
sudo apt-get install --yes --quiet pandoc
- name: Setup gems
run: |
cp test/support/gemfile.rb Gemfile
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
bundler-cache: true
- name: Run bundler
run: |
bundle install --jobs 4 --retry 3
- name: Run RuboCop
run: |
bundle exec rubocop -S
- name: Run Brakeman
run: |
bundle exec brakeman -5
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: '18'
- run: yarn install
- name: Run Stylelint
run: node_modules/.bin/stylelint assets/stylesheets/
- name: Run ESLint
run: node_modules/.bin/eslint assets/javascripts/