fix(install): install cron for acme.sh and verify the binary installed #38
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Unit Tests | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| paths: | |
| - ".github/workflows/command-tests.yml" | |
| - "pasarguard.sh" | |
| - "pg-node.sh" | |
| - "pg-node-service.sh" | |
| - "lib/**" | |
| - "tests/unit_lib_common.sh" | |
| - "tests/unit_lib_env.sh" | |
| - "tests/unit_lib_github.sh" | |
| - "tests/unit_pasarguard.sh" | |
| - "tests/unit_pgnode.sh" | |
| - "tests/unit_pgnode_service.sh" | |
| - "tests/unit_restore_archive_safety.sh" | |
| - "tests/unit_lib_system.sh" | |
| pull_request: | |
| paths: | |
| - ".github/workflows/command-tests.yml" | |
| - "pasarguard.sh" | |
| - "pg-node.sh" | |
| - "pg-node-service.sh" | |
| - "lib/**" | |
| - "tests/unit_lib_common.sh" | |
| - "tests/unit_lib_env.sh" | |
| - "tests/unit_lib_github.sh" | |
| - "tests/unit_lib_system.sh" | |
| - "tests/unit_pasarguard.sh" | |
| - "tests/unit_pgnode.sh" | |
| - "tests/unit_pgnode_service.sh" | |
| - "tests/unit_restore_archive_safety.sh" | |
| workflow_dispatch: | |
| jobs: | |
| unit-tests: | |
| name: Unit Tests | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install archive tooling for restore-safety tests | |
| run: sudo apt-get update && sudo apt-get install -y zip unzip | |
| - name: Run lib/common.sh unit tests | |
| run: bash tests/unit_lib_common.sh | |
| - name: Run lib/env.sh unit tests | |
| run: bash tests/unit_lib_env.sh | |
| - name: Run lib/github.sh unit tests | |
| run: bash tests/unit_lib_github.sh | |
| - name: Run lib/system.sh unit tests | |
| run: bash tests/unit_lib_system.sh | |
| - name: Run pasarguard.sh unit tests | |
| run: bash tests/unit_pasarguard.sh | |
| - name: Run pg-node.sh unit tests | |
| run: bash tests/unit_pgnode.sh | |
| - name: Run pg-node-service.sh unit tests | |
| run: bash tests/unit_pgnode_service.sh | |
| - name: Run restore archive-safety unit tests | |
| run: bash tests/unit_restore_archive_safety.sh |