-
Notifications
You must be signed in to change notification settings - Fork 15
63 lines (60 loc) · 1.9 KB
/
Copy pathcommand-tests.yml
File metadata and controls
63 lines (60 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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