Skip to content

Commit 2afba82

Browse files
committed
ci: running test groups in parallel jobs in github actions
1 parent cbfdc3d commit 2afba82

File tree

3 files changed

+42
-13
lines changed

3 files changed

+42
-13
lines changed

.github/workflows/quality-assurance.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,10 @@ on: [workflow_call]
44

55
jobs:
66

7-
quality-assurance:
8-
name: Quality Assurance
9-
runs-on: ubuntu-latest
10-
steps:
11-
- name: Checkout
12-
uses: actions/checkout@v4
13-
- name: Lint
14-
uses: azohra/shell-linter@latest
15-
with:
16-
path: "vuh.sh,vuh-completion.sh,installer.sh,tests/run_tests.sh,tests/_clean_tmp.sh"
17-
- name: Unit tests
18-
run: |
19-
./run_tests.sh || exit 1
7+
unit-tests:
8+
name: Unit tests
9+
uses: ./.github/workflows/unit-tests.yml
10+
11+
shellcheck:
12+
name: Shellcheck
13+
uses: ./.github/workflows/shellcheck.yml

.github/workflows/shellcheck.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Shellcheck
2+
3+
on: [workflow_call]
4+
5+
jobs:
6+
7+
shellcheck:
8+
name: Shellcheck
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
- name: Lint
14+
uses: azohra/shell-linter@latest
15+
with:
16+
path: "vuh.sh,vuh-completion.sh,installer.sh,tests/run_tests.sh,tests/_clean_tmp.sh"

.github/workflows/unit-tests.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Unit tests
2+
3+
on: [workflow_call]
4+
5+
jobs:
6+
7+
unit-tests:
8+
name: Unit tests
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
test_group: ['bo', 'ci', 'sv', 'cc', 'mr', 'mmo', 'nrd', 'cgd', 'cgdmr', 'of', 'ae']
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
- name: Unit tests
17+
working-directory: 'tests'
18+
run: |
19+
./run_tests.sh -tp ${{ matrix.test_group }} || exit 1

0 commit comments

Comments
 (0)