diff --git a/.github/docker/layer-99.00-summary.sh b/.github/docker/layer-99.00-summary.sh new file mode 100755 index 00000000..305000a4 --- /dev/null +++ b/.github/docker/layer-99.00-summary.sh @@ -0,0 +1,54 @@ +#!/bin/bash +# +# .github/docker/layer-99.00-summary.sh +# + +set -o pipefail + +# this path from for the container +# shellcheck disable=SC1091 +. /.github/docker/include + +main() { + layer_begin "$@" + + printf "OS Info:\n" + tail -n 1000 /etc/os-release /etc/debian_version | paste /dev/null - + printf "\n" + + printf "Collecting apt installed packages:\n" + echo Running: apt list \> /root/apt-pkgs-end.txt + apt list >/root/apt-pkgs-end.txt + printf "\n" + + printf "Show apt package diff:\n" + echo Running: diff -uNr /root/apt-pkgs-{start,end}.txt + diff -uNr /root/apt-pkgs-{start,end}.txt + printf "\n" + + printf "Show cargo packages:\n" + echo Running cargo install --list + cargo install --list | paste /dev/null - + printf "\n" + + printf "Show golang packages:\n" + echo Running ls "$(go env GOPATH)/bin" + # shellcheck disable=SC2012 + ls "$(go env GOPATH)/bin/" | paste /dev/null - + printf "\n" + + printf "Show npm packages:\n" + echo Running npm list --global + npm list --global | paste /dev/null - + printf "\n" + + layer_end "$@" +} + +main "${@}" |& tee /root/layer-15.00-exercism-rust.log + +if [[ -n ${GITHUB_STEP_SUMMARY} ]]; then + printf "\`\`\`text\n" + cat /root/layer-15.00-exercism-rust.log + printf "\`\`\`\n" +fi >>"${GITHUB_STEP_SUMMARY}" diff --git a/Dockerfile b/Dockerfile index 87943f22..48b6b239 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,6 +16,8 @@ RUN .github/docker/layer-10.00-exercism-gcc_clang_llvm.sh ci-generic-debian RUN .github/docker/layer-15.00-exercism-rust.sh ci-generic-debian +RUN .github/docker/layer-99.00-summary.sh ci-generic-debian + # Copies your code file from your action repository to the filesystem path `/` of the container COPY .github/docker/entrypoint.sh /entrypoint.sh