backup.sh/.github/workflows/backup.sh.yml

23 lines
492 B
YAML
Raw Normal View History

2023-03-14 11:17:01 +01:00
name: backup.sh
on:
push:
branches: [master]
workflow_dispatch:
jobs:
bash:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
2023-03-14 11:19:20 +01:00
sudo apt update
sudo apt -y install rsync tar openssl shellcheck
2023-03-14 11:17:01 +01:00
- name: Run ShellCheck
run: |
shellcheck backup.sh
shellcheck tests.sh
- name: Run unit tests
run: |
2023-03-14 11:22:34 +01:00
sudo ./tests.sh I_HAVE_READ_THE_HELPER