From 67bf04f85b7ed03b9475a6c3375246f96dbb0e06 Mon Sep 17 00:00:00 2001 From: Joachim Schmidt Date: Fri, 5 Jun 2020 18:57:22 +0200 Subject: [PATCH] Refactor workflow commands --- .github/workflows/main.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b4d734b..42ff46c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,13 +27,5 @@ jobs: FILE=zig-cache/bin/zls - if test -f "$FILE"; then - if zig build test; then - exit 0 - else - exit 1 - fi - else - exit 1 - fi - + test -f "$FILE" || exit 1 + zig build test || exit 1