File tree 4 files changed +48
-22
lines changed
4 files changed +48
-22
lines changed Original file line number Diff line number Diff line change
1
+ ---
1
2
version : 2
2
3
updates :
3
- - package-ecosystem : " github-actions"
4
- directory : " /"
5
- schedule :
6
- interval : " daily"
7
- - package-ecosystem : " docker"
8
- directory : " /"
9
- schedule :
10
- interval : " daily"
4
+ - package-ecosystem : " github-actions"
5
+ directory : " /"
6
+ schedule :
7
+ interval : " daily"
8
+ - package-ecosystem : " docker"
9
+ directory : " /"
10
+ schedule :
11
+ interval : " daily"
Original file line number Diff line number Diff line change
1
+ ---
1
2
name : " CI"
2
3
on :
3
4
push :
37
38
build-test :
38
39
name : Build and Test
39
40
runs-on : ubuntu-20.04
40
- needs : [ "lint", "shellcheck" ]
41
+ needs :
42
+ - lint
43
+ - shellcheck
41
44
steps :
42
45
- uses : actions/checkout@v3
43
46
- name : Build Docker image
55
58
steps :
56
59
- uses : actions/checkout@v3
57
60
58
- - name : Run integration test 1
61
+ - name : Run integration test 1 - good Dockerfile
59
62
uses : ./
60
63
with :
61
64
dockerfile : testdata/Dockerfile
@@ -117,6 +120,15 @@ jobs:
117
120
# format: sarif
118
121
# output-file: report.sarif
119
122
123
+ - name : Run integration test 9 - run with no Dockerfiles
124
+ # This should not fail if no Dockerfiles are found in the path
125
+ # especially if git change deletes Dockerfile
126
+ uses : testdata/test_empty_dir
127
+ with :
128
+ dockerfile : " "
129
+ failure-threshold : error
130
+ recursive : true
131
+
120
132
release :
121
133
if : github.event_name == 'push' && github.ref == 'refs/heads/master'
122
134
name : Release
Original file line number Diff line number Diff line change 1
- - repo : local
2
- hooks :
3
- - id : lint-dockerfile
4
- name : Lint Dockerfile
5
- entry : make lint-dockerfile
6
- language : system
7
- files : \.yml$
8
- - id : lint-yaml
9
- name : Lint YAML
10
- entry : make lint-yaml
11
- language : system
12
- files : \.yml$
1
+ ---
2
+ repos :
3
+ - repo : local
4
+ hooks :
5
+ - id : lint-dockerfile
6
+ name : Lint Dockerfile
7
+ entry : make lint-dockerfile
8
+ language : system
9
+ files : \.yml$
10
+
11
+ - id : lint-yaml
12
+ name : Lint YAML
13
+ entry : make lint-yaml
14
+ language : system
15
+ files : \.yml$
16
+ - repo : https://github.com/adrienverge/yamllint
17
+ rev : v1.33.0
18
+ hooks :
19
+ - id : yamllint
20
+ - repo : https://github.com/koalaman/shellcheck-precommit
21
+ rev : v0.9.0
22
+ hooks :
23
+ - id : shellcheck
Original file line number Diff line number Diff line change 6
6
max : 80
7
7
level : warning
8
8
document-start : disable
9
+ truthy :
10
+ level : warning
You can’t perform that action at this time.
0 commit comments