From 2ed966304cc7a96da71259971c79dfc2b3d5db47 Mon Sep 17 00:00:00 2001 From: Marco Cetica Date: Tue, 14 Mar 2023 11:17:01 +0100 Subject: [PATCH] Added CI --- .github/workflows/backup.sh.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/backup.sh.yml diff --git a/.github/workflows/backup.sh.yml b/.github/workflows/backup.sh.yml new file mode 100644 index 0000000..eda30ae --- /dev/null +++ b/.github/workflows/backup.sh.yml @@ -0,0 +1,22 @@ +name: backup.sh +on: + push: + branches: [master] + workflow_dispatch: + +jobs: + bash: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Install dependencies + run: | + apt update + apt -y install rsync tar openssl shellcheck + - name: Run ShellCheck + run: | + shellcheck backup.sh + shellcheck tests.sh + - name: Run unit tests + run: | + ./tests.sh I_HAVE_READ_THE_HELPER