-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (43 loc) · 1.04 KB
/
_static-analysis.yml
File metadata and controls
52 lines (43 loc) · 1.04 KB
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
#
# Run static code analysis.
#
name: Static Analysis
on:
workflow_call:
workflow_dispatch:
jobs:
linting:
name: Run Static Analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
submodules: recursive
- name: set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2.0"
bundler-cache: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install pre-commit
run: |
python -m pip install --upgrade pip
python -m pip install pre-commit
- name: Run pre-commit checks (security + hygiene)
env:
SKIP: rubocop,steep
run: |
pre-commit run --all-files --show-diff-on-failure
- name: Analyse the code with Rubocop
run: |
bundle install
bundle exec rubocop ./
- name: Attempt to generate the documentation
run: |
bundle exec rake doc
- name: Check types using Steep
run: |
bundle exec steep check