-
Notifications
You must be signed in to change notification settings - Fork 130
45 lines (38 loc) · 993 Bytes
/
unit-testing.yaml
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
name: Unit testing
on:
pull_request:
branches:
- develop
- main
paths:
- 'lib/**'
- 'uac'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
name: Unit testing
runs-on: ubuntu-latest
steps:
- name: Clone uac repo
uses: actions/checkout@v3
with:
path: uac
- name: Clone ushunit repo
uses: actions/checkout@v4
with:
repository: tclahr/ushunit
token: ${{ secrets.ACTIONS_SECRET }}
ref: main
path: ushunit
- name: Clone uac-tests repo
uses: actions/checkout@v4
with:
repository: tclahr/uac-tests
token: ${{ secrets.ACTIONS_SECRET }}
ref: main
path: uac-tests
- name: Run tests
working-directory: ushunit
run: |
UAC_DIR="../uac" ./ushunit -i ../uac-tests/tests/lib/*.sh ../uac-tests/tests/*.sh