Skip to content

Commit 07c30cd

Browse files
committed
build: Add hadolint
1 parent 28fd3b0 commit 07c30cd

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: Code quality
3+
run-name: code-quality-${{ github.event.number }} ${{ github.event.pull_request.title }}
4+
5+
on:
6+
pull_request:
7+
branches:
8+
- main
9+
10+
# the `concurrency` settings ensure that not too many CI jobs run in parallel
11+
concurrency:
12+
# group by workflow and ref; the last slightly strange component ensures that for pull
13+
# requests, we limit to 1 concurrent job, but for the master branch we don't
14+
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/master' || github.run_number }}
15+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
16+
17+
18+
jobs:
19+
hadolint:
20+
name: Code quality - hadolint
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@v3
25+
26+
- name: Run hadolint
27+
uses: hadolint/hadolint-action@v3.1.0
28+
with:
29+
recursive: true

0 commit comments

Comments
 (0)