-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (33 loc) · 941 Bytes
/
test.yml
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
name: Run Test Scripts
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: 'checkout the source code'
uses: actions/checkout@v3
- name: 'install dependencies'
run: |
sudo apt-get update
sudo apt-get install -y gcc make libcjson-dev
- name: 'build the library'
run: make
- name: 'install the library'
run: sudo make install
- name: 'build the examples'
run: make example
- name: 'run example #1'
run: |
./dist/example_hello &
./scripts/hello_test.sh
killall -9 example_hello
- name: 'run example #2'
run: |
./dist/example_echo &
./scripts/echo_test.sh
killall -9 example_echo
- name: 'run example #3'
run: |
./dist/example_middleware &
./scripts/middleware_test.sh
killall -9 example_middleware