Skip to content

Commit 88119b6

Browse files
committed
Fix CI config
1 parent 9470f8d commit 88119b6

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

.circleci/config.yml

+21-3
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,32 @@ jobs:
1313
steps:
1414
- checkout
1515
- setup_remote_docker
16-
- pack/install-pack
16+
- pack/install-pack:
17+
version: 0.16.0
1718
- run: pack package-buildpack test --config << parameters.package-toml >>
1819

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+
1935
workflows:
2036
version: 2
21-
package:
37+
ci:
2238
jobs:
39+
- shell-linting
2340
- package-buildpack:
2441
matrix:
2542
parameters:
26-
package-toml: [ "meta-buildpacks/nodejs/package.toml" ]
43+
package-toml:
44+
- "meta-buildpacks/nodejs/package.toml"

0 commit comments

Comments
 (0)