Skip to content

Commit 5646b93

Browse files
committed
Adds Rubocop / Code Quality CI workflow
1 parent dc6b222 commit 5646b93

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/code_quality.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: 'Code quality'
2+
on:
3+
workflow_call:
4+
inputs:
5+
docker_image:
6+
type: string
7+
required: true
8+
9+
defaults:
10+
run:
11+
working-directory: /app
12+
13+
jobs:
14+
code_quality:
15+
runs-on: ubuntu-latest
16+
needs:
17+
- rubocop
18+
steps:
19+
- run: echo "All code quality checks complete."
20+
working-directory: '/'
21+
22+
rubocop:
23+
runs-on: ubuntu-latest
24+
container:
25+
image: ${{ inputs.docker_image }}
26+
credentials:
27+
username: ${{ github.actor }}
28+
password: ${{ secrets.github_token }}
29+
steps:
30+
- name: Inspecting with Rubocop
31+
run: rubocop

0 commit comments

Comments
 (0)