File tree 1 file changed +21
-3
lines changed
1 file changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -13,14 +13,32 @@ jobs:
13
13
steps :
14
14
- checkout
15
15
- setup_remote_docker
16
- - pack/install-pack
16
+ - pack/install-pack :
17
+ version : 0.16.0
17
18
- run : pack package-buildpack test --config << parameters.package-toml >>
18
19
20
+ shell-linting :
21
+ docker :
22
+ - image : koalaman/shellcheck-alpine:v0.7.1
23
+ steps :
24
+ - run : " apk add git"
25
+ # shfmt is currently (Jan 2021) only available in the edge community repository.
26
+ - run : " apk add shfmt --repository=http://dl-3.alpinelinux.org/alpine/edge/community"
27
+ - checkout
28
+ - run :
29
+ name : " shellcheck"
30
+ command : " shfmt -f . | grep -v ^test/ | xargs shellcheck"
31
+ - run :
32
+ name : " shfmt"
33
+ command : " shfmt -f . | grep -v ^test/ | xargs shfmt -d"
34
+
19
35
workflows :
20
36
version : 2
21
- package :
37
+ ci :
22
38
jobs :
39
+ - shell-linting
23
40
- package-buildpack :
24
41
matrix :
25
42
parameters :
26
- package-toml : [ "meta-buildpacks/nodejs/package.toml" ]
43
+ package-toml :
44
+ - " meta-buildpacks/nodejs/package.toml"
You can’t perform that action at this time.
0 commit comments