-
Notifications
You must be signed in to change notification settings - Fork 41
42 lines (36 loc) · 1.39 KB
/
github-action-ubuntu-22.04-LTS.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
42
name: Ubuntu 22.04 LTS Build & Test
run-name: ${{ github.actor }} is testing on Ubuntu 22.04 LTS
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-22.04
steps:
# Checkout source code
- name: Step 1 - Check out repository code
uses: actions/checkout@v3
# Install dependencies
- name: Step 2 - Install Dependencies
run: |
sudo apt-get install libboost-all-dev cmake libssl-dev build-essential
# Build project
- name: Step 3 - Build Project
run: |
sh build.sh -t local
# Build unittest
- name: Step 4 - Build Test
run: |
sh build.sh -t tst -s ~/.ASNeG/
# Run unittest
- name: Step 5 - Run Test OpcUaStackCoreTest
run: |
cd build_tst_Debug
./OpcUaStackCoreTest --log_format=JUNIT --log_sink=core_results.xml --log_level=all --report_level=no
./OpcUaStackClientTest --log_format=JUNIT --log_sink=client_results.xml --log_level=all --report_level=no
./OpcUaStackServerTest --log_format=JUNIT --log_sink=server_results.xml --log_level=all --report_level=no
# Publish test result
- name: Step 6 - Pulish test resul
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
junit_files: build_tst_Debug/*_results.xml
- run: echo "This job's status is ${{ job.status }}."