Skip to content

Commit 6368483

Browse files
style(docker): execute dockerfile lint on CI
1 parent 3486c9a commit 6368483

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.github/workflows/continuous_delivery.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@ jobs:
3535
with:
3636
helpURL: https://github.com/ServeRest/ServeRest/blob/trunk/.github/CONTRIBUTING.md
3737

38+
dockerfile-lint:
39+
40+
runs-on: ubuntu-18.04
41+
42+
steps:
43+
- name: Project checkout
44+
uses: actions/checkout@v2
45+
- run: docker run --rm -i hadolint/hadolint < Dockerfile
46+
3847
test-api:
3948

4049
runs-on: ubuntu-18.04
@@ -88,7 +97,7 @@ jobs:
8897
run: cd test/infra && go test -v -timeout 10m
8998

9099
release:
91-
needs: [lint, commit-lint, test-api, test-mutation, test-infra-docker]
100+
needs: [lint, commit-lint, dockerfile-lint, test-api, test-mutation, test-infra-docker]
92101

93102
runs-on: ubuntu-18.04
94103

.github/workflows/continuous_integration.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@ jobs:
3535
with:
3636
helpURL: https://github.com/ServeRest/ServeRest/blob/trunk/.github/CONTRIBUTING.md
3737

38+
dockerfile-lint:
39+
40+
runs-on: ubuntu-18.04
41+
42+
steps:
43+
- name: Project checkout
44+
uses: actions/checkout@v2
45+
- run: docker run --rm -i hadolint/hadolint < Dockerfile
46+
3847
test-api:
3948

4049
runs-on: ubuntu-18.04

0 commit comments

Comments
 (0)