forked from IQSS/dataverse
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (45 loc) · 1.46 KB
/
shellcheck.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
name: "Shellcheck"
on:
push:
branches:
- develop
paths:
- conf/solr/**/.sh
- modules/container-base/**/*.sh
- modules/container-configbaker/**/*.sh
pull_request:
branches:
- develop
paths:
- conf/solr/**/*.sh
- modules/container-base/**/*.sh
- modules/container-configbaker/**/*.sh
jobs:
shellcheck:
name: Shellcheck
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v3
- name: shellcheck
uses: reviewdog/action-shellcheck@v1
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review # Change reporter.
fail_on_error: true
# Container base image uses dumb-init shebang, so nail to using bash
shellcheck_flags: "--shell=bash --external-sources"
# Exclude old scripts
exclude: |
*/.git/*
doc/*
downloads/*
scripts/database/*
scripts/globalid/*
scripts/icons/*
scripts/installer/*
scripts/issues/*
scripts/r/*
scripts/tests/*
tests/*