Skip to content

Commit

Permalink
reverting deletiong of Docker, it was not the issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Ximaz committed May 4, 2024
1 parent 95403b8 commit 5a46541
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 6 deletions.
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM debian:stable

RUN apt update -y \
&& apt upgrade -y \
&& apt install -y build-essential valgrind

WORKDIR /root/

COPY valgrind.sh /root/valgrind.sh

ENTRYPOINT ["./valgrind.sh"]
7 changes: 2 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,5 @@ inputs:
default: false

runs:
using: "composite"
steps:
- name: "Run Valgrind checker"
run: valgrind.sh
shell: bash
using: "docker"
image: "Dockerfile"
13 changes: 13 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: "3.9"

services:
valgrind-action:
build:
dockerfile: Dockerfile
context: .
image: valgrind-action
container_name: valgrind-tester
env_file:
- .env
volumes:
- ./:/root/
2 changes: 1 addition & 1 deletion valgrind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ parse_valgrind_reports() {
while IFS= read -r line; do
if [[ "${error}" != "" ]]; then
if [[ $(echo "${line}" | grep '^==.*== $') && $(skip_criterion_pipe_leaks "${error}") == "1" ]]; then
echo "::${kind} title=Valgrind Report::${error}" >> annotations
echo "::${kind} title=Valgrind Report::${error}"
error=""
status=1
else
Expand Down

0 comments on commit 5a46541

Please sign in to comment.